2018-07-09 14:15:16 +01:00
|
|
|
# logoff
|
|
|
|
|
|
|
|
> Terminate a login session.
|
2020-09-16 13:19:57 +01:00
|
|
|
> More information: <https://docs.microsoft.com/windows-server/administration/windows-commands/logoff>.
|
2018-07-09 14:15:16 +01:00
|
|
|
|
|
|
|
- Terminate the current session:
|
|
|
|
|
|
|
|
`logoff`
|
|
|
|
|
|
|
|
- Terminate a session by its name or id:
|
|
|
|
|
|
|
|
`logoff {{session_name|session_id}}`
|
|
|
|
|
2018-07-10 08:49:51 +01:00
|
|
|
- Terminate a session on a specific server connected through RDP:
|
2018-07-09 14:15:16 +01:00
|
|
|
|
2018-07-13 10:40:27 +01:00
|
|
|
`logoff {{session_name|session_id}} /server:{{servername}}`
|