利用Dos命令,远程重启服务器

@echo off
echo start to close the server
set server=10.0.0.10
net use \%server%ipc$ mima /u:"administrator"
shutdown -r -m \%server% -t 30 -c

exit

可将以上内容存为bat文件

原文地址:https://www.cnblogs.com/pyblogs/p/3491497.html