2019-03-11 12:44:25 +00:00
|
|
|
# shutdown
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 用于关闭,重新启动或注销计算机的工具。
|
2019-03-11 12:44:25 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 关闭当前的计算机:
|
2019-03-11 12:44:25 +00:00
|
|
|
|
|
|
|
`shutdown /s`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 重启当前的计算机:
|
2019-03-11 12:44:25 +00:00
|
|
|
|
|
|
|
`shutdown /r`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 休眠当前的计算机:
|
2019-03-11 12:44:25 +00:00
|
|
|
|
|
|
|
`shutdown /h`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 注销当前的计算机:
|
2019-03-11 12:44:25 +00:00
|
|
|
|
|
|
|
`shutdown /l`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 指定在关闭之前等待的时间(以秒为单位):
|
2019-03-11 12:44:25 +00:00
|
|
|
|
|
|
|
`shutdown /s /t {{秒}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 指定一个关机的理由:
|
2019-03-11 12:44:25 +00:00
|
|
|
|
|
|
|
`shutdown /s /c "{{理由}}"`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 在超时之前取消关机指令:
|
2019-03-11 12:44:25 +00:00
|
|
|
|
|
|
|
`shutdown /a`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 关闭远程的计算机:
|
2019-03-11 12:44:25 +00:00
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
`shutdown /m {{\\ 主机名}}`
|