CmdID

CmdID / Commands

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0
logoff [<sessionname> | <sessionID>] [/server:<servername>] [/v]
logoff
logoff 12
logoff 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

from tldr-pages, CC BY 4.0

Terminate a login session.

Terminate the current session

logoffIdentify

Terminate a session by its name or ID

logoff session_nameIdentify

Terminate 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