O'Reilly logo

Windows Server Cookbook by Robbie Allen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.19. Restarting or Shutting Down a Server

Problem

You want to restart or shut down a server.

Solution

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required