Logoff


Applies To: Windows Server 2008,Windows Vista

Logs off a user from a session on a terminal server and deletes the session from the server.

For examples of how to use this command, see Examples.

Syntax


Copy Code

logoff [<SessionName> | <SessionID>] [/server:<ServerName>] [/v]

Parameters

Parameter

Description

<SessionName>

Specifies the name of the session.

<SessionID>

Specifies the numeric ID which identifies the session to the server.

/server:<ServerName>

Specifies the terminal server that contains the session whose user you want to log off. If unspecified, the server on which you are currently active is used.

/v

Displays information about the actions being performed.

/?

Displays help at the command prompt.

Remarks

Examples


Copy Code

logoff


Copy Code

logoff 12


Copy Code

logoff TERM04 /server:Server1

Additional references

Command-Line Syntax Key

Terminal Services Command Reference