Name
Logoff —
\windows\system32\logoff.exe
Synopsis
Log out the current user (or another user).
To Open
Command Prompt →
logoff
Usage
logoff [session|id] [/server:name] [/v]
Description
Among other things, Logoff is the quickest way to log off the current user, rather than selecting “Shut Down from the Start Menu,” choosing “Log off” from the list, and clicking OK. In fact, you can create a shortcut to Logoff on your Desktop and simply double-click it to end the current session.
Logoff can also be used to end the session of a remotely connected user, either through terminal services or through the Telnet daemon. For example, if someone has connected to a Windows XP computer using Telnet, you can disconnect them, either from another Telnet session or from the command prompt, by using Logoff and the following options:
-
session The name of the session to end; use either
sessionoridto end a session, but not both.-
id The ID of the session to end; use either
sessionoridto end a session, but not both.-
/server:name Specifies the terminal server containing the session to end; the default is current.
-
/v Displays additional information about the actions being performed.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access