2.15. Configuring System Failure Options


You want to configure what happens when a server encounters a critical failure and crashes.


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. All of the system failure options are located under the System Failure heading. Modify the settings as necessary.

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

Using a command-line interface

The system failure and recovery options are stored in the registry. You can view the current settings by enumerating the HKLM\SYSTEM\CurrentControlSet\Control\CrashControl subkey:

> reg query \\<ServerName>\HKLM\SYSTEM\CurrentControlSet\Control\CrashControl

On Windows Server 2003, you can also use the wmic utility to view these settings:

> wmic /node:<ServerName> recoveros list /format:list

To modify these settings, use either the reg add command (on Windows 2000) or the wmic command (on Windows Server 2003). Next, I'll show some examples using wmic.

To disable admin alerts after failure, do the following:

> wmic recoveros set SendAdminAlert = False

To disable automatic reboot after failure, do the following:

> wmic recoveros set AutoReboot = False

To not write any information to a memory dump file after failure, do the following:

> wmic recoveros set DebugInfoType = 0

To set the mini-dump directory to d:\minidumps (only available with Windows Server 2003), do the following:

> wmic recoveros set MiniDumpDirectory ...

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.