2018-07-09 14:15:16 +01:00
|
|
|
# logoff
|
|
|
|
|
|
|
|
> Terminate a login session.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/logoff>.
|
2018-07-09 14:15:16 +01:00
|
|
|
|
|
|
|
- Terminate the current session:
|
|
|
|
|
|
|
|
`logoff`
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Terminate a session by its name or ID:
|
2018-07-09 14:15:16 +01:00
|
|
|
|
|
|
|
`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}}`
|