文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Linux下关闭远程windows server 2003

Linux下关闭远程windows server 2003

时间:2010-09-29  来源:改造人

不好意思,所谓原创,只是自己总结而已,技术肯定不是我发现的了。

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服务器需求时,这个命令还是不错的,方便啊!!!

 

相关阅读 更多 +
排行榜 更多 +
突击骑兵2

突击骑兵2

飞行射击 下载
方程式赛车竞赛

方程式赛车竞赛

赛车竞速 下载
赛博朋克飞行赛车

赛博朋克飞行赛车

赛车竞速 下载