Logoff is an external command that allows users to quickly log off of their computer from the command line or within a batch file.
Availability
Logoff command is an external command available for the following Microsoft operating systems as logoff.exe.
Availability
Logoff syntax
Logoff examples
Windows 2000
Windows XP
Windows 7
Windows 8
Logoff syntax
Windows Vista and later syntax
LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V] [/VM]
Windows XP and earlier syntax
LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V]
Logoff examples
logoff
Would immediately log off the profile currently logged in to Windows.
The logoff command is no longer available in Windows 10.
- Windows Vista and later syntax
- Windows XP and earlier syntax
Running this command does not prompt you if you’re sure you want to log off.
Related information
- See our logoff definition for further information and related links on this term.