The new Windows 10 style interface that has made its way into Windows Server 2016 has left some late adopters a little confused, here we’ll cover how you can easily log off.
There are a few different ways to do this, we’ll cover some different methods of logging out through both the graphical user interface (GUI) and command line interface (CLI).
Log Out Through GUI
Option 1
- Left click the Start button from the bottom left corner.
- Left click your username from the top left corner of the start menu.
- Left click “Sign Out”.
Option 2
- Right click the Start button from the bottom left corner.
- Hover over “Shut down or sign out”.
- Left click “Sign Out”.
Option 3
- Press the “Alt + F4” keyboard combination.
- From the Shut Down Windows pop up that opens, change the “What do you want the computer to do?” drop down to “Sign Out” and click the OK button.
Option 4
- Press the “Ctrl + Alt + Del” keyboard combination. If you are logged in through a virtual machine console, you may instead need to use “Ctrl + Alt + Ins”.
- From the options available on the blue screen that appears, click “Sign Out”.
Log Out Through Command Line Interface
This is typically done with the logoff command.
- Open Command Prompt or PowerShell.
- Type ‘logoff’ and press enter to be logged out immediately. Alternatively you can use the ‘shutdown -l’ command.
Summary
There are a few different ways to sign out of Windows Server 2016 from either the user interface or command line as demonstrated.
I found this on the web and am wondering what the difference is and “best practice” We have Citrix connection to the server and wondering if a simple logoff is leaving “stuff” behind in memory that could cause an issue in the future.
We only reboot when absolutely necessary!
No. Typing logoff at the PowerShell prompt is surely the best method from RDP and leaves nothing running or disconnected.
Basic side-step scenarios is to dump the memory (user with debug privileges such as Administrator/SYSTEM) and retrieve hashes to recover them or conduct pass-the-hash logon to other computers.
Investigating a Windows 2012r2 the proper way to do a logoff is to use the following command:
“shutdown /l”