Linux下关闭远程windows server 2003
不好意思,所谓原创,只是自己总结而已,技术肯定不是我发现的了。
linux下使用此命令:
net rpc shutdown -r -f -I xxx.xxx.xxx.xxx -U username%password
[root@test ~]# net rpc shutdown -r -t 60 -I 192.168.1.119 -U administrator%123456
Shutdown of remote machine succeeded
[root@test ~]#
常用参数:
-r or –reboot request remote server reboot on shutdown
-f or –force request the remote server force its shutdown
-t or –timeout=<timeout> number of seconds before shutdown
-C or –comment=<message> text message to display on impending shutdown
win7 系统未成功
[root@test ~]# net rpc shutdown -r -I 192.168.1.38 -U haha@123
[2010/09/29 17:09:57, 0] utils/net_rpc.c:run_rpc_command(160)
Could not initialise pipe \winreg. Error was NT_STATUS_OBJECT_NAME_NOT_FOUND
win2008 未试验
如果有批量重启windows服务器需求时,这个命令还是不错的,方便啊!!!
转载于:https://blog.51cto.com/gaizaoren/399254