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 session or id to end a session, but not both.

id

The ID of the session to end; use either session or id to 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.

Get Windows XP in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.