Terminal Server Commands: LOGOFF
This article was previously published under Q186477
terminates the session.
Syntaxlogoff [sessionID] [/server:servername] [/v] [/?]
logoff [sessionname] [/server:servername] [/v] [/?]
Specifies the ID of the session.
Identifies the name of the session. The name was created by the system administrator when the session was configured.
Specifies the Terminal Server containing the user session from which you want to log off. Otherwise, the current Terminal Server is used.
Displays information about the actions being performed.
Displays the syntax for the command and information about the command's options.
Security RestrictionsYou can always log off from the session where you are currently logged on.You must have logoff access permission to log off other sessions.
LOGOFF -- Additional NotesIt is recommended that you terminate your session by switching to eachprogram and ending the program normally. This allows each program toterminate without losing any data.
If no ID or name for the session is specified, logoff terminates thecurrent session. If you specify the name of the session, it must identifyan active session.
LOGOFF -- ExamplesTo terminate the current session, type:
To terminate session 12, type:
To terminate session TERM04 on server WF12, type:
logoff TERM04 /server:WF12
Article ID: 186477 - Last Review: 11/01/2006 05:57:23 - Revision: 2.1
Microsoft Windows NT Server 4.0, Terminal Server Edition