logoff
Logs off a user from a session on a Remote Desktop Session Host server and deletes the session. Windows commands reference
On Windows File logoff.exe
Windows
logoff [<sessionname> | <sessionID>] [/server:<servername>] [/v]logofflogoff 12logoff TERM04 /server:Server1
<sessionname>Specifies the name of the session. This must be an active session.<sessionID>Specifies the numeric ID which identifies the session to the server./server:<servername>Specifies the Remote Desktop Session Host server that contains the session whose user you want to log off. If unspecified, the server on which you are currently active is used./vDisplays information about the actions being performed./?Displays help at the command prompt.Windows
Terminate a login session.
Terminate the current session
logoffIdentifyTerminate a session by its name or ID
logoff session_nameIdentifyTerminate a session on a specific server connected through RDP
logoff session_name /server:servernameIdentify/serverSpecifies the Remote Desktop Session Host server that contains the session whose user you want to log off. Windows commands reference