2.19. Restarting or Shutting Down a Server


You want to restart or shut down a server.


Using a graphical user interface

With Windows Server 2003 and Windows 2000 you can obviously shut a machine down by going to Start Shut Down, but I'll describe the new graphical interface with the shutdown.exe command, which is available in Windows Server 2003.

  1. From the Start menu select Run.

  2. Type cmd.exe and click OK.

  3. In the CMD window, type shutdown /i and hit enter.

  4. Click the Add button, type the names of the server(s) you want to shut down or restart, and click OK.

  5. Select whether you want to restart or shut down the server(s).

  6. Enter the number of seconds to warn logged on users (or uncheck to not warn).

  7. Configure the Shutdown Event Tracker options.

  8. Click OK. In the CMD window, you'll see a status message stating if the operation was successful.

Here is another option that is available from either Windows 2000 or Windows Server 2003:

  1. Open the Computer Management snap-in.

  2. If you want to target a remote system, right-click on the Computer Management icon in the left pane and select Connect to another computer. Enter the computer name beside Another computer and click OK.

  3. Right-click on the Computer Management icon in the left pane and select Properties.

  4. Click the Advanced tab.

  5. Under Startup and recovery, click the Settings button.

  6. Click the Shut Down button.

  7. Select from the list of actions and options under Forced Closed Apps.

  8. Click OK.

Using a command-line interface

The following two commands ...

Get Windows Server Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.