Returns a list of settings that indicate the action to be taken by a computer should a stop event (blue screen) occur.
strComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")Set colRecoveryOptions = objWMIService.ExecQuery _("Select * from Win32_OSRecoveryConfiguration")For Each objOption in colRecoveryOptionsWscript.Echo "Auto reboot: " & objOption.AutoRebootWscript.Echo "Debug File Path: " & objOption.DebugFilePathWscript.Echo "Debug Info Type: " & objOption.DebugInfoTypeWscript.Echo "Kernel Dump Only: " & objOption.KernelDumpOnlyWscript.Echo "Name: " & objOption.NameWscript.Echo "Overwrite Existing Debug File: " & _objOption.OverwriteExistingDebugFileWscript.Echo "Send Administrative Alert: " & objOption.SendAdminAlertWscript.Echo "Write Debug Information: " & objOption.WriteDebugInfoWscript.Echo "Write to System Log: " & objOption.WriteToSystemLogNext
This is a VB Script, this can be used by saving the file in .vbs file