Shutting down/ restarting PCs

A couple of ways to shutdown/ restart a PC (especially useful if the PC is at a remote location or crashes when shutdown normally). This command- as far as I know- only started getting built in to Windows XP + Server 2003 so won’t be available by default on Windows 2000 or before.
 
  • The following command restarts the PC (-r), forces any running process to quit (-f) and sets the timeout for shutdown to 0 second (-t 00)- effectively an instant shutdown.
  • shutdown -r -f -t 00
  • The following command shuts the PC down (-s), forces any running process to quit (-f) and sets the timeout for shutdown to 0 second (-t 00)- effectively an instant shutdown.
  • shutdown -s -f -t 00
  • The following command restarts (-r) a remote PC (-m \\xxxxxx), forces any running process to quit (-f) and sets the timeout for shutdown to 10 minutes (-t 600).
  • shutdown -r -f -m \\xxxxxx -t 600

Please note that using the -f switch is a bit risky as it won’t save any data, but I frequently use this because otherwise the shutdown/ restart can hang waiting for a process to close.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s