如何关闭 - 重新启动 - 通过bat文件注销Windows? [英] How do I shutdown - restart - logoff Windows via a bat file?
本文介绍了如何关闭 - 重新启动 - 通过bat文件注销Windows?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在使用远程桌面连接进入工作站,但我无法在开始菜单中使用关闭/重新启动功能。
我在下面的答案中提供了一些非常有用的选项。 / p>
注意:
我想确保一些非常好的答案也与我自己一起提到。
解决方案
通过批处理文件执行关闭函数:
-
shutdown -r
- restarts -
shutdown -s
- 关闭 -
code> - logoff
-
shutdown -t xx
- 其中xx
是关闭/重新启动/注销前等待的秒数 -
shutdown -i
- 提供一个对话框,函数 -
shutdown -a
- 中止以前的shutdown命令....非常方便! -
shutdown -h
- hibernate。 简单的错误 - 不是帮助
其他选项:
-
-f
- 强制执行所选操作
I've been using Remote Desktop Connection to get into a workstation, but I'm not able to use the shutdown/restart function in the Start menu while doing this.
I've put a few really helpful options in the answer below.
Note: I wanted to make sure some really good answers were also mentioned along with my own on this.
And here they are in no particular order.
- Force the shutdown from JosephStyons
- Executing the DLL file from VonC
- Run it from the Run Box from Dean
- Remote Shutdown from Kip
解决方案
Here's how to do the shutdown functions via a batch file:
shutdown -r
— restartsshutdown -s
— shutsdownshutdown -l
— logoffshutdown -t xx
— wherexx
is number of seconds to wait till shutdown/restart/logoffshutdown -i
— gives you a dialog box to fill in what function you want to useshutdown -a
— aborts the previous shutdown command....very handy!shutdown -h
— hibernate. Easy mistake - it's not for help
Additional options:
-f
— force the selected action
这篇关于如何关闭 - 重新启动 - 通过bat文件注销Windows?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文