proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« Mozilla Firefox 2.0 , Fedora Core 6 , MPlayer 1.0rc1 发布 | Main | python 的字符串匹配记得加上引号 »

October 25, 2006

psshutdown - 通过TCP/139网邻远程重起Windows服务器

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2006/10/25/001121.html
http://windtear.net/archives/2006/10/25/001121.html

psshutdown - 通过TCP/139网邻远程重起Windows服务器

Shutdown, logoff and power manage local and remote systems

通过TCP/139网邻(网上邻居)方式远程重起Windows服务器
http://windtear.net/archives/2004/05/11/000345.html


http://www.microsoft.com/technet/sysinternals/utilities/PsTools.mspx
http://www.microsoft.com/technet/sysinternals/utilities/psshutdown.mspx
最新版
PsShutdown v2.51
Published: November 1, 2006
http://download.sysinternals.com/Files/PsTools.zip

net use \\10.99.168.5\ipc$ administrator密码 /user:administrator
命令成功完成。

E:\Software\OS\tools\Pstools>psshutdown/?

PsShutdown v2.51 - Shutdown, logoff and power manage local and remote systems
Copyright (C) 1999-2006 Mark Russinovich
Sysinternals - www.sysinternals.com

usage:
psshutdown -s|-r|-h|-d|-k|-a|-l|-o [-f] [-c] [-t [nn|h:m]] [-v nn] [-e [u|p]:xx:
yy] [-m "message"] [-u Username [-p password]] [-n s] [\\computer[,computer[,...
]|@file]
   -a          Abort a shutdown (only possible while countdown is in progress)
   -c          Allow the shutdown to be aborted by the interactive user
   -d          Suspend the computer
   -e          Shutdown reason code (available on Windows XP and higher).
               Specify 'u' for unplanned and 'p' for planned
               shutdown reason codes.
               xx is the major reason code (must be less than 256)
               yy is the minor reason code (must be less than 65536)
   -f          Forces running applications to close
   -h          Hibernate the computer
   -k          Poweroff the computer (reboot if poweroff is not supported)
   -l          Lock the computer
   -m          Message to display to logged on users
   -n          Specifies timeout in seconds connecting to remote computers
   -o          Logoff the console user
   -p          Specifies optional password for user name. If you omit this
               you will be prompted to enter a hidden password.
   -r          Reboot after shutdown
   -s          Shutdown without poweroff
   -t          Specifies countdown in seconds until shutdown (default is 20) or
               the time of shutdown (in 24 hour notation)
   -u          Specifies optional user name for login to remote
               computer.
   -v          Display message for the specified number of seconds before
               the shutdown. If you omit this parameter the shutdown
               notification dialog displays and specifying a value of 0
               omits the dialog.
   computer    Shutdown the computer or computers specified
   @file       Shutdown the computers listed in the file specified


E:\Software\OS\tools\Pstools>psshutdown -r \\10.99.168.5

PsShutdown v2.51 - Shutdown, logoff and power manage local and remote systems
Copyright (C) 1999-2006 Mark Russinovich
Sysinternals - www.sysinternals.com

10.99.168.5 is scheduled to reboot in 00:00:20.
本blog WWW

Posted by windtear at October 25, 2006 11:37 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.