我需要closures和/或重新启动远程系统。 这可以远程完成,而不需要身体旁边的服务器?
马上重启:
shutdown /r /m \\computername /t 0
现在关机:
shutdown /s /m \\computername /t 0
在这两个示例中,如果需要,将0更改为延迟秒数。 您可以从其他许多选项中获得:
shutdown /?
你也可能想结账Mark Russinovich的PsShutdown实用程序。 它与本机Windows关机命令类似,但也允许您注销控制台用户或locking控制台。
在Windows远程桌面中点击ctrl + alt + END。 然后点击关机button。
转到工作站上的命令提示符(开始>运行> cmd)…并键入shutdown -r -m \ xxx.xxx.xxx.xxx将xxx.xxx.xxx.xxxreplace为远程计算机的IP地址或计算机名称机。 -r选项用于重新启动,不要使用-r如果要closures系统。
这也可以很有趣
shutdown -i为您提供了一个非常简单的GUI界面,您可以在其中定位一台或多台计算机,select关机或重新启动,设置倒数计时器等。这是我在重新启动远程计算机时总是使用的命令。
我在Stackoverflow上有一个类似的post,并包含一个等待服务器回来的重启脚本。
我在家里这样做。 开始>运行cmd.exe并键入shutdown -s -t 60 (我总是使用-t 60,因为我会忘记当我按下Enter键时我需要做一些事情shutdown -a会中止closures,如果不是,太晚了。)
如果您有远程桌面访问closures可以通过这里完成。
您也可以使用SysInternals工具中的psshutdown 。
Dogbert的技术支持:做一个硬重启
用法:关机[/ i | / l | / s | / r | / g | / a | / p | / h | / e] [/ f] [/ m \ computer] [/ t xxx] [/ d [p | u:] xx:yy [/ c“comment”]]
No args Display help. This is the same as typing /?. /? Display help. This is the same as not typing any options. /i Display the graphical user interface (GUI). This must be the first option. /l Log off. This cannot be used with /m or /d options. /s Shutdown the computer. /r Shutdown and restart the computer. /g Shutdown and restart the computer. After the system is rebooted, restart any registered applications. /a Abort a system shutdown. This can only be used during the time-out period. /p Turn off the local computer with no time-out or warning. Can be used with /d and /f options. /h Hibernate the local computer. Can be used with the /f option. /e Document the reason for an unexpected shutdown of a computer. /m \\computer Specify the target computer. /t xxx Set the time-out period before shutdown to xxx seconds. The valid range is 0-600, with a default of 30. Using /t xxx implies the /f option. /c "comment" Comment on the reason for the restart or shutdown. Maximum of 512 characters allowed. /f Force running applications to close without forewarning users. /f is automatically set when used in conjunction with /t xxx. /d [p|u:]xx:yy Provide the reason for the restart or shutdown. p indicates that the restart or shutdown is planned. u indicates that the reason is user defined. if neither p nor u is specified the restart or shutdown is unplanned. xx is the major reason number (positive integer less than 256). yy is the minor reason number (positive integer less than 65536).
在这台电脑上的原因:(E =预期的U =意外的P =计划的,C =顾客定义的)types主要次要标题
U 0 0其他(计划外)E 0 0其他(计划外)EP 0 0其他(计划内)U 0 5其他故障:系统不响应E 1 1硬件:维护(计划外)硬件:安装(计划外的)EP 1 2硬件:安装(计划)P 2 3操作系统:升级(计划)E 2 4操作系统:重新configuration(未计划)EP 2 4操作系统:重新configuration服务包(计划)2 17操作系统:热修复(计划外)P 2 17操作系统:热修复(计划)2 18操作系统:安全修复(意外)P 2 18操作系统:安全修复程序(计划) EP 4 2应用:安装(已计划)EP 4 2应用:安装(已计划)E 4 5应用:无响应E 4 6应用:不稳定U 5 15系统故障:停止错误E 5 19安全问题U 5 19安全问题EP 5 19安全问题E 5 20networking连接丢失(计划外)U 6 11电源故障 引诱:拔下电源线U 6 12电源故障:环境P 7 0传统的APIclosures