Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
You can configure a computer to take specific actions if it encounters an unrecoverable error condition. The actions you specify affect how long it takes to restart a computer and how much information will be available for diagnosing the cause of the error condition. This enables you to balance the need for recording information about the error condition (which can take a considerable amount of time, depending on how much memory is installed on the computer) with the need to have the computer operational as soon as possible.
You can control the amount of time required to restore a computer to full functionality by configuring the type of memory dump file that is written when the computer encounters an unrecoverable error condition. The different memory dump types vary greatly in the size of the file they generate; in turn, this affects the time it takes to write the file and the time it takes to restart the computer. (File sizes are also affected by the amount of memory installed on a computer.) Table 8.20 shows the relative sizes of the memory dump files on a Windows 2000 based computer with 512 MB of RAM.
Table 8.20 Relative Sizes of Memory Dump Files
Recovery Option | Size of Dump File |
---|---|
Complete memory dump | 512 MB |
Kernel memory dump | 244 MB |
Small memory dump | 64 KB |
In addition to specifying the type of memory dump file to be generated, you can control other recovery options such as:
The Win32_OSRecoveryConfiguration class can be used to configure the recovery options for a computer. The properties available through this class are shown in Table 8.19.
Listing 8.22 contains a script that modifies the recovery configuration on a computer. To carry out this task, the script must perform the following steps:
This query returns a collection consisting of all the operating system recovery settings for the computer.
If a debug file is found, it will not be overwritten.
Listing 8.22 Modifying the Recovery Configuration on a Computer
|
|
Send us your feedback | « Previous | Next » |