Log Off or Sign Out from CMD in Windows 11 and 10 To log off or sign out from Command Prompt in Windows 11 or Windows 10, run shutdown l or logoff Both commands sign you out of your current session, including when you run them inside a Remote Desktop session
How to Log Off a Windows 10 Computer in 4 Different Ways Logging off will close all files and applications you're currently using, like the computer is preparing to shut down, so it's important to make sure you have everything saved
logoff | Microsoft Learn Reference article for the logoff command, which logs off a user from a session on a Remote Desktop Session Host server and deletes the session
How to Log Out of Your Computer Operating System Press Ctrl + Alt + Del and choose the option to Log off Or, click Start, and on the Start menu right arrow next to the Shut down button and click the option to Log off
How to Shut Down a Computer Shutting down a computer closes all open programs and exits the operating system safely so hardware isn't damaged and your files aren't corrupted To learn how to properly shut down your computer, choose your operating system from the list below and follow the steps
shutdown | Microsoft Learn Reference article for the shutdown command, which enables you to shut down or restart local or remote computers, one at a time