By David Wiseman (Administrator)Created 03 Feb 2008
My Rating:
Vote
Rating:
Not Rated
Views:4142
Downloads:26

List Recovery Configuration Options

Language:  PowerShell

Compatibility

Windows XP Yes Windows 2003 Yes
Windows 2000 No Windows NT No
Vista Yes Windows 2008 Yes
Description

Returns a list of settings that indicate the action to be taken by a computer should a stop event (blue screen) occur.

Code

Line Numbers: On  Off      Plain Text
$strComputer = "."

$colItems = get-wmiobject -class "Win32_OSRecoveryConfiguration" -namespace "root\CIMV2" `
-computername $strComputer

foreach ($objItem in $colItems) {
      write-host "Auto-Reboot: " $objItem.AutoReboot
      write-host "Caption: " $objItem.Caption
      write-host "Debug File Path: " $objItem.DebugFilePath
      write-host "Debug Information Type: " $objItem.DebugInfoType
      write-host "Description: " $objItem.Description
      write-host "Expanded Debug File Path: " $objItem.ExpandedDebugFilePath
      write-host "Expanded Mini-Dump Directory: " $objItem.ExpandedMiniDumpDirectory
      write-host "Kernel-Dump Only: " $objItem.KernelDumpOnly
      write-host "Mini-Dump Directory: " $objItem.MiniDumpDirectory
      write-host "Name: " $objItem.Name
      write-host "Overwrite Existing Debug File: " $objItem.OverwriteExistingDebugFile
      write-host "Send Administrator Alert: " $objItem.SendAdminAlert
      write-host "Setting ID: " $objItem.SettingID
      write-host "Write Debug Information: " $objItem.WriteDebugInfo
      write-host "Write To System Log: " $objItem.WriteToSystemLog
      write-host
}

 


Got a useful script? Click here to upload!


 

  Post Comment
Order By:  
User Comments
      
Be the first to post a comment!