W2KSG: Startup Options

How is your machine configured to startup?

Listing 8.18 of the Scripting Guide has the answer.

Get-WmiObject -Class Win32_ComputerSystem | Select AutomaticResetBootOption, AutomaticResetCapability, BootupState, SystemStartupOptions, SysetmStartupSetting

The first 2 properties are booleans indicating whether the system is set for automatic restart and if it is capable of automatic restart. The Bootstate will show Normal Boot unless you have gone into Safe start etc. The last 2 will be blank unless you have dual boot configured on the machine.  if so you will see the options and the chosen setting


Share this post :


Technorati Tags: ,

About these ads
This entry was posted in PowerShell and WMI. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s