Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
The computer startup options include such key items as:
The Win32_ComputerSystem class can be used to enumerate the startup properties for a computer. The properties available through this class are shown in Table 8.16.
Table 8.16 Win32_ComputerSystem Properties for Enumerating Startup Options
Property | Description |
---|---|
AutomaticResetBootOption | Boolean value indicating whether the automatic restart option is enabled. |
AutomaticResetCapability | Boolean value indicating whether the computer is capable of automatic restart. |
BootupState | Value indicating the current startup mode of the computer. Fail-safe boot (also called SafeBoot) bypasses the user's startup files. This property must have a value. Values are:
|
SystemStartupDelay | Time to delay (in seconds) before starting the operating system. |
SystemStartupOptions | Array containing the options for starting up the Win32® computer system. On a multiple-boot computer with both Windows XP and Windows 2000 Advanced Server installed, the SystemStartupOptions might look like this:" |
SystemStartupSetting | Index of the default operating system, as determined by the Boot.ini file. This value is calculated so that it usually returns 0 because during startup the selected operating system is physically moved to the top of the list. (This is how the computer determines which value is the default.) |
Listing 8.18 contains a script that enumerates the startup options on a computer. To carry out this task, the script must perform the following steps:
Listing 8.18 Enumerating Startup Options
|
|
Send us your feedback | « Previous | Next » |