利用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文件

posted @ 2013-12-25 22:23  朋友博客集  阅读(425)  评论(0编辑  收藏  举报