{"id":15175,"date":"2019-10-14T13:21:23","date_gmt":"2019-10-14T13:21:23","guid":{"rendered":"https:\/\/www.top-password.com\/blog\/?p=15175"},"modified":"2019-10-14T13:28:32","modified_gmt":"2019-10-14T13:28:32","slug":"log-off-another-user-in-windows-10","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/log-off-another-user-in-windows-10\/","title":{"rendered":"3 Ways to Log off Another User in Windows 10"},"content":{"rendered":"<p>How do I sign out other user accounts without restarting the computer? When someone forgets to log out of a public or shared PC, their account still consumes RAM in the background. To free up the resources being used by other logged-in accounts, you can log them off using Task Manager, Command Prompt and PowerShell.<\/p>\n<p><strong>Method 1: Log Off Another User Using Task Manager<\/strong><\/p>\n<p>Press the <strong>Ctrl<\/strong> + <strong>Shift<\/strong> + <strong>Esc<\/strong> keyboard shortcut to <a href=\"https:\/\/www.top-password.com\/blog\/5-quick-ways-to-open-task-manager-in-windows-10-8\/\" rel=\"noopener noreferrer\" target=\"_blank\">launch Task Manager<\/a>. Go to the <strong>Users<\/strong> tab,  it will list all users that are currently signed in to your system. Right-click on the user you want to log off and select the <strong>Sign off<\/strong> option.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/sign-off-another-user-in-windows.png\" alt=\"\" width=\"492\" height=\"317\" class=\"alignnone size-full wp-image-15180\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/sign-off-another-user-in-windows.png 492w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/sign-off-another-user-in-windows-300x193.png 300w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/p>\n<p>You will get a warning that says the user&#8217;s unsaved data might be lost. Click on <strong>Sign out user<\/strong> when you need to proceed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/user-unsaved-data-will-be-lost.png\" alt=\"\" width=\"354\" height=\"171\" class=\"alignnone size-full wp-image-15181\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/user-unsaved-data-will-be-lost.png 354w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/user-unsaved-data-will-be-lost-300x145.png 300w\" sizes=\"auto, (max-width: 354px) 100vw, 354px\" \/><\/p>\n<p><strong>Method 2: Log Off Another User Using Command Prompt<\/strong><\/p>\n<p><a href=\"https:\/\/www.top-password.com\/blog\/open-elevated-command-prompt-from-standard-user-in-windows\/\" rel=\"noopener noreferrer\" target=\"_blank\">Open the Command Prompt with administrative rights<\/a>, run the <strong>query session<\/strong> command to see all users currently logged into the computer. Take note of the session ID of the user you want to sign out.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/query-session-using-cmd.png\" alt=\"\" width=\"600\" height=\"246\" class=\"alignnone size-full wp-image-15182\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/query-session-using-cmd.png 600w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/query-session-using-cmd-300x123.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Next, run the following command to log off your desired account by specifying the session ID.<br \/>\n<code>logoff ID<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/log-off-other-user-using-cmd.png\" alt=\"\" width=\"545\" height=\"105\" class=\"alignnone size-full wp-image-15183\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/log-off-other-user-using-cmd.png 545w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/log-off-other-user-using-cmd-300x58.png 300w\" sizes=\"auto, (max-width: 545px) 100vw, 545px\" \/><\/p>\n<p>This method doesn&#8217;t give you any alert or confirmation that the user you&#8217;re signing out will lose unsaved work.<\/p>\n<p><strong>Method 3: Log Off Another User Using PowerShell<\/strong><\/p>\n<p><a href=\"https:\/\/www.top-password.com\/blog\/5-ways-to-run-powershell-as-administrator-in-windows-10\/\" rel=\"noopener noreferrer\" target=\"_blank\">Open Windows PowerShell with administrative rights<\/a>, and type the following commands. Replace &#8220;<em>Server01<\/em>&#8221; with your computer&#8217;s name and substitute &#8220;<em>pcunlocker<\/em>&#8221; with the name of the account you want to log out.<br \/>\n<code>$server   = 'Server01'<br \/>\n$username = 'pcunlocker'<br \/>\n$sessionId = ((quser \/server:$server | Where-Object { $_ -match $userName }) -split ' +')[2]<br \/>\nlogoff $sessionId \/server:$server<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/log-out-another-account-using-powershell.png\" alt=\"\" width=\"551\" height=\"195\" class=\"alignnone size-full wp-image-15184\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/log-out-another-account-using-powershell.png 551w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2019\/10\/log-out-another-account-using-powershell-300x106.png 300w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/p>\n<p>Once logged off, the user account is no longer listed in Task Manager. Signing a user out this way has the same risk of losing all unsaved data as the above method.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How do I sign out other user accounts without restarting the computer? When someone forgets to log out of a public or shared PC, their account still consumes RAM in the background. To free up the resources being used by other logged-in accounts, you can log them off using Task Manager, Command Prompt and PowerShell. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10,1894],"tags":[4354,4353,4355],"class_list":["post-15175","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","category-windows-10","tag-log-off-another-user-from-cmd","tag-log-off-another-user-windows-10","tag-windows-10-sign-out-other-user"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/15175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=15175"}],"version-history":[{"count":10,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/15175\/revisions"}],"predecessor-version":[{"id":15190,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/15175\/revisions\/15190"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=15175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=15175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=15175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}