2.14. Configuring System Startup Options


You want to configure the system startup options for a server.


Using a graphical user interface

  1. From the Control Panel, open the System applet.

  2. Select the Advanced tab.

  3. Under Startup and Recovery, click the Settings button.

  4. Under the System Startup heading, you can modify the default operating system and the amount of time the system waits before loading the default OS.

  5. To change additional startup options on Windows Server 2003, you can click the Edit button to modify the boot.ini file. See the Discussion section for how to do this on Windows 2000.

  6. Click OK until all of the windows are closed.

Using a command-line interface

Windows Server 2003 includes a new tool called bootcfg.exe (also available with Windows XP) that lets you examine and modify the system startup options (including boot.ini) from the command line. To get a list of the current startup options, run bootcfg without any parameters:

> bootcfg

The following command changes the timeout setting for the default OS option to 15 seconds:

> bootcfg /timeout 15

The following command adds the /DEBUG and /SOS options to the OS option defined by ID 2 (which you can see by running bootcfg without any options):

> bootcfg /Raw "/DEBUG /SOS" /A /ID 2

For the complete list of bootcfg options, run bootcfg /? from the command line.

Using VBScript

' This code displays the system startup settings. ' ------ SCRIPT CONFIGURATION ------ strComputer = "." ' e.g., rallen-srv01 ' ------ END CONFIGURATION ...

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.