web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / i-am-ax-pankaj / Log Off Another User in Win...

Log Off Another User in Windows

I AM AX PANKAJ Profile Picture I AM AX PANKAJ 419

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.pastedimage1655896180457v1.png
  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.pastedimage1655896180458v2.png

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.pastedimage1655896180458v3.png
  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.pastedimage1655896180458v4.png

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.

https://winaero.com/log-off-another-user-in-windows-10/

Comments

*This post is locked for comments