How to log out of other users on Windows 11
If someone is not actively using their session, you can log the inactive user out of your account to reclaim those system resources.
Each active user session on your PC means your computer resources are shared with others, which can affect system performance. If someone is not actively using their session, you can log the inactive user out of your account to reclaim those system resources.
1. Log out of other users using Task Manager
Task Manager's Users tab keeps track of all active user sessions on your computer. You can use it to manage user accounts on Windows, switch between different user accounts, and log out of other user accounts. However, if you just need to log out of your current session on Windows 11, the process is much simpler.
You must log in as admin to log out other user accounts (check if your user account has admin rights if you are not sure). It's important that when you log out a user, that user's unsaved data may be lost. So be careful!
To log out other users using Task Manager:
1. Right-click Start and select Task Manager. Alternatively, use the keyboard shortcut Ctrl + Shift + Esc .
2. In Task Manager, open the Users tab on the left to display the number of users currently logged in. If you don't see it, click the Open Navigation button (three horizontal bars) in the top left corner.
3. In the Users tab , find the account you want to log out of.
4. Right click on the user account and select Sign off .
5. Click Sign out user . Windows will close all open applications and running processes, then log the user out.
2. Log out of other users using Command Prompt
On Windows 11 Pro, Edu and Enterprise versions, you can use the Command Prompt "query sessions" command to check and log out active user accounts. This command cannot work on Windows 11 Home, limiting your options.
To log out another user using Command Prompt:
1. Press the Win key and type cmd.
2. Right-click Command Prompt and select Run as administrator .
3. In the Command Prompt window, type the following command to see all active user sessions with the query:
query session
4. The output will display all active user sessions on your computer. Note down the user account ID you want to log out of. In this case, we have Tashreef as 1 and Guest21 as 3 in the ID column .
5. Enter the following command to log out the specified user. Replace the 2 below with the user account ID you want to log out of:
Logoff 3
6. After successful execution, Windows will log out the specified user account.
7. Once completed, type exit and press Enter to close Command Prompt.
3. Log out of other users using Process Explorer
Process Explorer is part of Windows Sysinternal Tools, a suite of system administration utilities from Microsoft. While this freeware is popular among developers and system administrators, 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.
1. Visit Microsoft's official Process Explorer site and download Process Explorer as a zip file to a location on the desktop.
2. Right-click the ProcessExplorer.zip archive and select Extract All . Choose a location and unzip the folder.
3. Open the ProcessExplorer folder , right-click procexp64.exe and select Run as administrator .
4. In the Process Explorer window , click Users to view all active user sessions.
5. Move the cursor over the user account name and select Logoff .
Process Explorer will log the selected user account out of your computer. If you get an access denied error, run the procexp64.exe executable with admin rights and try again.
You should read it
- Guide 5 ways to delete User accounts on Windows 10
- Instructions on how to create a new User on Windows 10
- What is the Power User Menu?
- How to create a new Windows 11 user quickly and simply
- The 10 most requested changes by the Windows 11 user community
- How to delete Windows 11 user accounts quickly
- How to move user folders on Windows 10
- 4 ways to switch user accounts on Windows 11
- 3 ways to Backup Profile in Windows 7
- How to change User Profile folder name in Windows 11
- How to quickly access the Windows 10 User folder
- Windows User State Virtualization - Part 5: Complex environment
Maybe you are interested
Google releases an urgent security patch for Chrome, users take note! Fake Voice 7.0 - Download Fake Voice 7.0 here Google Chrome again urgently updates to patch serious security holes Google Chrome has an urgent update, patching a serious zero-day vulnerability being exploited by hackers Asus ROG Phone 3 leaked many important parameters, may launch in July How did 'LoveBug' change the world of malware?