Home  >  Article  >  System Tutorial  >  How to Sign Out Other Users on Windows 11

How to Sign Out Other Users on Windows 11

王林
王林Original
2024-06-14 13:36:17812browse

Each active user session on your PC means your computer's resources are shared with others, which can impact system performance. If someone is not actively using their session, you can log off the idle user from your account to reclaim those system resources.

1. Sign Out Other Users Using the Task Manager

The Task Manager's Users tab keeps track of all the user sessions active on your computer. You can use it to manage user accounts on Windows, switch between different user accounts, and sign off other user accounts. If you only need to sign out of your current session on Windows 11, the process is much simpler, though.

You must be logged in as an administrator to sign off other user accounts; check if your user account has administrator rights if you're not sure. Importantly, when you sign out a user, the user's unsaved data might be lost. So tread carefully.

To sign out other users using Task Manager:

  1. Right-click on Start and select Task Manager. Alternatively, use the keyboard shortcut Ctrl + Shift + Esc.
  2. In Task Manager, open the Users tab in the left pane which displays the number of users currently logged in. If not visible, click the Open Navigation button (three horizontal bars) in the top left corner.How to Sign Out Other Users on Windows 11
  3. In the Users tab, locate the account you want to sign off.
  4. Right-click on the user account and select Sign off.How to Sign Out Other Users on Windows 11
  5. Click Sign out user. Windows will close all the open apps and running processes and then log out the user.

2. Sign Out Other Users Using the Command Prompt

On Windows 11 Pro, Edu, and Enterprise editions, you can use Command Prompt's "query sessions" command to check and log off active user accounts. This command is unlikely to work on a Windows 11 Home, limiting your options.

To sign out other users using Command Prompt:

  1. Press the Win key and type cmd.
  2. Right-click on Command Prompt and select Run as administrator.
  3. In the Command Prompt window, type the following command to view all the active user sessions with a query:
    <code class="hljs ">query session</code> 
  4. The output will show all the active user sessions on your computer. Make a note of the user account ID you want to sign out. In this instance, we have Tashreef as 1 and Guest21 as 3 under the ID column.How to Sign Out Other Users on Windows 11
  5. Type the following command to sign out the specified user. Replace 2 below with the user account ID you want to sign out:
    <code class="hljs ">Logoff 3</code> 
  6. Upon successful execution, Windows will sign out the specified user account.How to Sign Out Other Users on Windows 11
  7. Once done, type exit and press Enter to close the Command Prompt.

3. Log Off Other Users Using Process Explorer

Process Explorer is part of Windows Sysinternal Tools, a suite of system administration utilities from Microsoft. Though the freeware is popular among developers and system admins, anyone can use Process Explorer to use some of its advanced features.

Process Explorer is a powerful tool that maps all currently active processes and DLL files to the accounts running them. Our purpose is to show you how to use its user management feature to kick out other user sessions.

  1. Go to Microsoft's official Process Explorer page and download Process Explorer as a zip file to a location on your desktop.How to Sign Out Other Users on Windows 11
  2. Right-click on the ProcessExplorer.zip archive, and select Extract All. Select a location and extract the folder.How to Sign Out Other Users on Windows 11
  3. Open the ProcessExplorer folder, right-click on procexp64.exe, and select Run as administrator.How to Sign Out Other Users on Windows 11
  4. In the Process Explorer window, click Users to view all the active user sessions.How to Sign Out Other Users on Windows 11
  5. Hover your cursor over the user account name and select Logoff.

Process Explorer will sign out the selected user account from your computer. If you get an access denied error, run the procexp64.exe executable with administrator privileges and try again.

Ask Other Users Before You Sign Them Out

When you log off other users, any unsaved work in their accounts is lost. So do consider that before you apply the above methods. Logging off from a Windows account in a multi-user PC is a good habit because it reduces the chance of data loss and frees up the computer's resources for others. Always request others to sign off when their work is finished.

The above is the detailed content of How to Sign Out Other Users on Windows 11. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn