Advertisement

Log Off Another User in Windows 10

How to Log Off Another User in Windows 10

Although the concept of multiple users sharing one device or one PC is getting rarer by the day, there are still cases when you have to share PCs and switch users fast. Sometimes you need to end a session for another user signed in to your computer. Here are a number of methods you can use.

Advertisеment

The situation can be different when you need to end a user session. For example, someone just forgot to sign out from his or her user account, and left running apps and opened docs, so the remain in your computer's memory and consume its system resources. In this case, it could be useful to kick out the inactive session for the other user.

There are no third party tools required. This can be done using either Task Manager, Command Prompt or PowerShell.

To Log Off Another User in Windows 10,

  1. Open the Task Manager app.
  2. If it looks as follows, switch it to the full view using the "More details" link in the bottom right corner.Task Manager Windows 10 Show More Details
  3. Click on the Users tab.
  4. Right-click on a user account you want to log off.
  5. Select Sign off from the context menu.Windows 10 Logoff Another User

You are done.

Alternatively, there are a couple of console tools we can use for the same purpose. Let's review them.

Log Off Another User from the Command Prompt

  1. Open an elevated command prompt.
  2. Type or copy-paste the following command:query session. This will list available user sessions.
  3. Note the ID column value for the user you want to sign off.Windows 10 Logoff Another User With Cmd
  4. Now, execute the command logoff <ID>. For example, logoff 1.

You are done.

Finally, you can use PowerShell, as follows.

Log Off Another User from with PowerShell

  1. Open PowerShell as Administrator.Tip: You can add "Open PowerShell As Administrator" context menu.
  2. Type or copy-paste the following command:$sessionID = ((quser /server:'you computer name' | Where-Object { $_ -match 'user name to sign off' }) -split ' +')[2]
  3. Now, execute the command logoff $sessionID.Windows 10 Logoff Another User PowerShell

The PowerShell method is great when you know the exact user name. You can save it as a script and sign out other users with one click when needed.

That's it.

Related blog posts:

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

2 thoughts on “Log Off Another User in Windows 10”

  1. None of these command line options work in the latest build at all. This article is just here to chew eyeballs, please fix it.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.