Showing posts with label shutdown from commandprompt. Show all posts
Showing posts with label shutdown from commandprompt. Show all posts

Friday, January 22, 2010

How to restart or shutdown Windows from command prompt

XP Ships with shutdown.exe, and is also found on Windows Server 2003. You can download a copy for Windows 2000, and Windows 2000 server as it is found in the AdminPak.msi suite of software. XP a& Win server 2003 ship with the .exe

the windows XP/2003 uses the "-" as the flag seperator, but windows 2000 uses the "/" as the flag seperator

for XP, go to the command prompt and type:

shutdown /?

this will show all of the available options. I use it all the time to reboot my servers in the middle of the night via a scheduled .bat file

this is a sample of how to reboot in 60 seconds, with a comment to the popup

shutdown -r -t 60 -c "Your message ( optional)"

to cancel, just type

shutdown -a


for shutdown

shutdown -s -t 60 -c "your message(optional)"