¡m¤À¨É¡nPsShutdown¥t¤@Ó¾A¦XWindows 2000ªºÃö¾÷³nÅé | |
°£¤FAuto Shutdown¥H¥~¡A
¶¶¤l¤S§ä¨ì¤F¥t¤@Ó¾A¦X¦bWindows 2000¤U¹B§@ªº¦Û°ÊÃö¾÷³nÅé¡ÐPsShutdown¡C
°£¤F¤@¼Ë§K¶O¡B§K¦w¸Ë¥H¤Î¥i¥H½T¹ê±NWindows 2000§¹¥þÃö¾÷¥~¡A
PsShutdownÁÙ¬O¤@Ó³æ¯Â¹B§@©ócommand line¤Uªº»·ºÝ¾Þ§@³nÅé¡F
´N¹³Windows XPùتºshutdown.exe¡C
(ÁöµM¬O§K¦w¸Ë¡A¤£¹L¦b¨Ï¥Î«eÁÙ¬O¥²»Ý¥ý¦bµøµ¡¬É±¤W°õ¦æ¤@¦¸¡A±µ¨ü¥¦ªº±ÂÅv«á¤~¯à¥¿½T¹B§@³á¡ã)
¥¦ªº¨Ï¥Î¤èªk¦p¤U¡G
psshutdown [[\\computer[,computer[,..] | @file [-u user [-p psswd]]] -s|-r|-h|-d|-k|-a|-l|-o [-f] [-c] [-t nn|h:m] [-n s] [-v nn] [-e [u|p]:xx:yy] [-m "message"]
°Ñ¼Æ§¹¾ã»¡©ú¦p¤U - Displays the supported options.
computer Perform the command on the remote computer or computers specified. If you omit the computer name the command runs on the local system, and if you specify a wildcard (\\*), the command runs on all computers in the current domain.
@file Run the command on each computer listed in the text file specified.
-u Specifies optional user name for login to remote computer.
-p Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
-a Aborts a shutdown (only possible while a countdown is in progress).
-c Allows the shutdown to be aborted by the interactive user.
-d Suspend the computer.
-e Shutdown reason code.
Specify 'u' for user reason codes 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 all running applications to exit during the shutdown instead of giving them a chance to gracefully save their data.
-h Hibernate the computer.
-k Poweroff the computer (reboot if poweroff is not supported).
-l Lock the computer.
-m This option lets you specify a message to display to logged-on users when a shutdown countdown commences.
-n Specifies timeout in seconds connecting to remote computers.
-o Logoff the console user.
-r Reboot after shutdown.
-s Shutdown without power off.
-t Specifies the countdown in seconds until the shutdown (default: 20 seconds) or the time of shutdown (in 24 hour notation).
-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 results in no dialog.
¦pªG¥u¬On²³æªº±NWindows 2000¦b60¬í«áÃö¾÷¡A
¨º»ò¥un¤U¹F¥H¤U«ü¥O´N¥i¥H¤F¡C
psshutdown -f -k -t 60
¨Ï¥Î¤W¨ä¹ê¤]¨S¦³¨º»òÃø°Õ¡ã
¨ä¤¤n¯S§Oª`·Nªº°Ñ¼Æk¡C
³oӰѼƸg¶¶¤l´ú¸Õ«á¡A¥i¥H§¹¾ãªº±NWindows 2000Ãö¾÷¡I
¸òcopy¦ÛWindows XPùتºShutdown.exe¡A¥u·|Ãö±¼Windows 2000¡A«oµLªkÃö³¬¹q·½¡A¦³µÛ«Ü¤jªº¤£¦P³á¡ã
©x¤èºô§}¡G
http://technet.microsoft.com/en-us/sysin...s/bb897541.aspx
PS.
¥»¤åªºªþ¥[Àɮ׬°PsShutdown ª©¥»2.52¡C
♥¶¶¤l¦Ñ±Cªººô©ç¡A½Ð¦hÃö·Ó¡ã
If you don't like something, change it.
If you can't change it, change your attitude.
Don't complain!
|