2019-03-11 05:27:50 +00:00
|
|
|
# logoff
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 注销登录会话。
|
2022-10-04 16:06:23 +01:00
|
|
|
> 更多信息:<https://learn.microsoft.com/windows-server/administration/windows-commands/logoff>.
|
2019-03-11 05:27:50 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 注销当前会话:
|
2019-03-11 05:27:50 +00:00
|
|
|
|
|
|
|
`logoff`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 通过名称和 id 注销会话:
|
2019-03-11 05:27:50 +00:00
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
`logoff {{会话名|会话 id}}`
|
2019-03-11 05:27:50 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 在通过 RDP 连接的特定服务器上注销会话:
|
2019-03-11 05:27:50 +00:00
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
`logoff {{会话名|会话 id}} /server:{{服务器名}}`
|