Windows 2000 Server Resource Kit Utilities
Batch files Shutdown and Reboot. A collection of shutdown commands for most DOS and Windows versions and scripting languages. OS 1Command line. Effect. Remarks. W7. SHUTDOWN s t 6. Shutdown in progress, leave the vicinity immediatelyShutdown in 6. Use m remotecomputer to shutdownlogoff a remote computer. W7. SHUTDOWN p. Immediate shutdown without warning. W7. SHUTDOWN l. Logoff. W7. SHUTDOWN h. Hibernate or sleep if hibernate is disabledXP Pro. NLTEST server localhost shutdown Shutting down, just for fun 6. Shutdown in 1 minute, displaying the reason in a popup. Use a remote server name instead of localhost to shutdown that remote server. XP Pro. NLTEST server localhost shutdownabort. Abort the shutdown in progress. Use a remote server name instead of localhost to abort a shutdown in progress on that remote server. XP Pro. WMIC OS Where PrimaryTRUE Call Shutdown. Immediate shutdown. Now that youve seen how you can easily set up, reconfigure, and monitor log shipping in SQL Server 2000, beef up your knowledge of role changes, role reversals, and. Youre currently subscribed to some eWEEK features and just need to create a username and password. Windows 2000 is an operating system for use on both client and server computers. It was produced by Microsoft and released to manufacturing on December 15, 1999, and. Get the latest Windows Hardware Development Kit Windows HDK for Windows 10 and start developing Universal Windows drivers, and testing and deploying Windows 10. N46BNqdWLU/UYMQG8nBZTI/AAAAAAAAAH0/Nr-8Td5q7eM/s400/robocopygui.jpg' alt='Windows 2000 Server Resource Kit Utilities' title='Windows 2000 Server Resource Kit Utilities' />Use WMICs NODE switch to shutdown a remote computer. XP Pro. WMIC OS Where PrimaryTRUE Call Reboot. Immediate reboot. Use WMICs NODE switch to reboot a remote computer. XP Pro. WMIC OS Where PrimaryTRUE Call Win. Shutdown 4. Forced logoff 04n can be any of the following numbers. Poweroff. XP Pro. WMIC OS Where PrimaryTRUE Call Win. Shutdown 1. 2Forced poweroff 84XPSHUTDOWN r t 1. Delayed reboot. Reboot after a 1. Can be stopped during those 1. SHUTDOWN a. XPSHUTDOWN s t 0. Delayed shutdown. Shutdown after a 1 second delay, NO poweroff. XPSHUTDOWN i. Interactive use with GUICan be used to shutdown multiple computers. TSLOGOFF 1. 6 SERVER termserv. Logoff. Logoff session 1. Terminal Server TERMSERV1. Use the QUERY USER command to find out which session ID belongs to whom. Find more Terminal Server commands. TSTSSHUTDN 4. 5 SERVER termserv. POWERDOWN DELAY 2. VDelayed poweroff. Notify all users on Terminal Server TERMSERV1, logoff all Terminal Server sessions after 4. Terminal Server TERMSERV1 and power off. See my Terminal Server Commands page for the exact syntax. W2. K 5DEVCON Reboot. Reboot. Requires Microsofts DEVCON utility. W2. KRUNDLL3. 2 Powr. Prof. dll, Set. Suspend. State. Activate suspend state W2. KRUNDLL3. 2 USER3. DLL,Lock. Work. Station. Lock. Credits Steven Clements posted on alt. W2. KLearn how to shutdown a remote Windows 2. Shutdown. GUI, no command line. NT 1PSSHUTDOWN mynt. K F T 2. 0Delayed poweroff. Poweroff mynt. 4srv after a 2. Can be aborted using PSSHUTDOWN mynt. AUses PSSHUTDOWN. EXE from Sys. Internals PS Tools. NT 1PSSHUTDOWN myw. O F T 0. Logoff. Immediately logoff console user on myw. Uses PSSHUTDOWN. EXE from Sys. Internals PS Tools. NT4RKW2. KRKSHUTDOWN L R T 0 YReboot. Immediate shutdown reboot. NT4RKW2. KRKSHUTDOWN L T 1. Y CDelayed shutdown. Shutdown in 1. 0 seconds, close without saving. Can be stopped during those 1. SHUTDOWN ANT4. See Reboot NT on my Solutions found in alt. Reboot. Reboot immediately. NT4. RUNDLL3. 2 USER3. DLL,Exit. Windows. Ex. RUNDLL3. 2 USER3. DLL,Exit. Windows. Ex. Logoff. Most systems require the command to be called twice before logging off. Win. 98MERUNDLL3. SHELL3. 2. DLL,SHExit. Windows. Ex n. Anyn can be any of the following numbers 4. Poweroff if supported by the hardwareWin. MERUNONCE. EXE q. Reboot 4 Win. 98. RUNDLL3. 2 KRNL3. EXE,exitkernel. Poweroff. Poweroff for ATX boards only, otherwise normal shutdown 3Win. RUNDLL USER. EXE,Exit. Windows. Shutdown 2 Win. RUNDLL USER. EXE,Exit. Windows. Exec. See Remarks. Win. 95 various results, usualy fast shutdown and lock PC, sometimes restart Windows, sometimes reboot. Win. 98 Restart Windows, sometimes reboot. Win. 9RUNDLL SHELL. DLL,Restart. Dialog. Restart dialogSystem Settings Changed, Do you want to restart your computer now dialog. Win. 31CHO GFFFF 0. DEBUGTask Manager popup. And sometimes reboot. DOSECHO GFFFF 0. DEBUGReboot. Warm boot, sometimes cold boot. May not work with exotic memory managers, like Quarterdecks QEMM or Desq. View in that case, use RESET. COM instead. Power. Shell. Restart Computer Force. Reboot. Immediately reboot the local computer. Power. Shell. Restart Computer Computer. Name remotepc Confirm Force. Reboot. Reboot remote computer remotepc, prompt for confirmation on local computer first. Power. Shell. Stop Computer Force. Shutdown. Immediately shutdown the local computer. Power. Shell. Stop Computer Computer. Name remotepc Confirm Force. Shutdown. Shutdown remote computer remotepc, prompt for confirmation on local computer first. Power. Shell. Stop Process Process. Name lue Screen. Kills all running processes immediately without confirmation, resulting in a Blue Screen Of Death. Ki. XtartRC SHUTDOWN server, Shutting down., 1. Delayed shutdown. Shutdown server in 1. Ki. XtartRC SHUTDOWN server,, 0, 1, 1 Reboot. Immediately shutdown reboot server, without a message. Ki. XtartRC LOGOFF 1 Logoff. Forcing applications to close. Use 0 instead of 1 if you dont want to force applications to close. Ki. XtartRC Set. System. State 0 Lock. Requires Ki. Xtart 4. Ki. XtartRC Set. System. State 1 Standby. Requires Ki. Xtart 4. Ki. XtartRC Set. System. State 2 Hibernate. Requires Ki. Xtart 4. Ki. XtartRC Set. System. State 3, 0 Poweroff. Power off with prompt to close applications. Use Set. System. State 3, 1 to close applications without prompting. Requires Ki. Xtart 4. Perl. Initiate. System. Shutdown s. Computer, s. Message, u. Timeout. Secs, b. Force, b. Reboot General syntax Active. Perl for Windows onlyPerl. Initiate. System. Shutdown, , 0, 1, 1 Reboot. Immediately reboot without message, force applications to close without saving data. Perl. Initiate. System. Shutdown, Going down., 1. Delayed reboot. Reboot after 1. Perl. Initiate. System. Shutdown 1. 0. 0. Sorry, 5, 1, 0 Delayed shutdown. Shutdown of remote computer after 5 seconds, with message and forced closing of applications. Regina Rexx. RC W3. Sys. Shutdown how ,force General syntax Regina Rexx for Windows with W3. Funcs only. how can be either Reboot, Logoff, Poweroff or Shutdown. Force or Noforce. Regina Rexx. RC W3. Sys. Shutdown P, F Poweroff. Immediately shutdown and poweroff, forced closing of application. Regina Rexx. RC W3. Sys. Shutdown L, N Logoff. Mortal Kombat Deadly Alliance Game Cube Iso. Logoff, prompt for saving unsaved data. WSH1 Set Op. Sys. Set Get. Objectwinmgmts Shutdown. Exec. Queryselect from Win. Operating. System where Primarytrue23 for each Op. Sys in Op. Sys. Set4 Op. Sys. Reboot 5. Reboot. Requires WMI. Remove line numbers. Alex K. AngelopoulosWSHReplace line 4 in the script above with this one 4 Op. Sys. Shutdown to shut down the PC instead of rebooting it. Shutdown. But no poweroff. See my WSH page for examples on how to reboot or shut down remote computers too. WSH1 Const EWXLOGOFF 023 Set wmi Get. Objectwinmgmts Shutdown4 Set obj. Set wmi. Instances. OfWin. 32Operating. System56 For Each obj in obj. Set7 Set os obj8 Exit For9 Next1. Win. 32. Shutdown EWXLOGOFFLogoff. Requires WMI. Remove line numbers. Posted by Michael Harris on microsoft. My Logoff. vbs combines this code with that of the reboot and shutdown commands, and allows logoff of remote computers as well. WSHSet obj. Shell Create. Object Shell. Application Shell. Shutdown. Windows. Open the Shutdown dialog. Based on the Advanced Stuff listing on groups. OS2. START PM SHUTDOWN EXITShutdown.