PowerShell for Windows Admins

Oct 4 2011   1:27PM GMT

Win32_OSRecoveryConfiguration class

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The Win32_OSRecoveryConfiguration class represents the types of information that will be gathered from memory when the operating system fails. This includes boot failures and system crashes.

One very important parameter is DebugInfoType  which sets the type of debugging information written to the log file.

Possible values are:

Value Meaning




Complete Memory Dump


Kernel Memory Dump


Small Memory Dump

If we try and change the setting like this

Set-WmiInstance -Class Win32_OSRecoveryConfiguration -Arguments @{DebugInfoType=1}

we get this error

Set-WmiInstance : Unsupported parameter

Lets try running in an elevated prompt. Nope same error

Last chance we EnableAllPrivileges while in an elevated prompt

Nope still get same error

very last chance

Get-WmiObject -Class Win32_OSRecoveryConfiguration -EnableAllPrivileges |
Set-WmiInstance -Arguments @{DebugInfoType=1}

Now that works!!

We have to enable all privileges on the object BEFORE we try and modify it.

If you have a WMI class where you are trying to modify a property and get these errors:

  1. Try elevated prompt
  2. Try –EnableAllPrivileges in elevated prompt
  3. Try Get-WmiObject with –EnableAllPrivileges  piped into Set-WmiInstance in an elevated prompt

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: