@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文件
@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