Microsoft DOS logoff command
Quick links
About logoff
Availability
Syntax
Examples
About logoff
The logoff command is an external command that allows a user to quickly logoff their computer from the command line or within a batch file.
Availability
The logon command is an external command that is available in the below Microsoft operating systems.
Windows 2000
Windows XP
Windows 7
Syntax
Terminates a session.
LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V]
| sessionname | The name of the session. |
| sessionid | The ID of the session. |
| /SERVER:servername | Specifies the Terminal server containing the user session to log off (default is current). |
| /V | Displays information about the actions performed. |
Examples
logoff
Would immediately log off the profile currently logged into Windows.
Tip: Running this command does not prompt you if you're sure you want to logoff.


