- Home
·
- Miscellaneous
·
- Get the OS Recovery Details using Win32_OSRecoveryConfiguration WMI Class
Get the OS Recovery Details using Win32_OSRecoveryConfiguration WMI Class
Get the OS Recovery Details using Win32_OSRecoveryConfiguration WMI Class
Rate Get the OS Recovery Details using Win32_OSRecoveryConfiguration WMI Class
(1(1 Vote))
'Generated using 'WMI Win32 Class Autoscript Generator' - Developed by Karthikeyan
'Homepage: http://www.geocities.com/marskarthik
On Error Resume Next
Computer = "."
Set OutFile = CreateObject("WScript.Shell")
Const ForAppending = 2
Set FileSystem = CreateObject("Scripting.FileSystemObject")
Set TextFile = FileSystem.OpenTextFile ("c:\Win32_OSRecoveryConfiguration.txt", ForAppending, True)
TextFile.WriteLine "Script for Win32_OSRecoveryConfiguration Class by Karthikeyan"
TextFile.WriteLine
Set WMIService = GetObject("winmgmts:\\" & Computer & "\root\cimv2")
Set Items = WMIService.ExecQuery("Select * from Win32_OSRecoveryConfiguration",,48)
For Each SubItems in Items
TextFile.WriteLine "********************************************************************"
TextFile.WriteLine "AutoReboot: " & SubItems.AutoReboot
TextFile.WriteLine "Caption: " & SubItems.Caption
TextFile.WriteLine "DebugFilePath: " & SubItems.DebugFilePath
TextFile.WriteLine "DebugInfoType: " & SubItems.DebugInfoType
TextFile.WriteLine "Description: " & SubItems.Description
TextFile.WriteLine "ExpandedDebugFilePath: " & SubItems.ExpandedDebugFilePath
TextFile.WriteLine "ExpandedMiniDumpDirectory: " & SubItems.ExpandedMiniDumpDirectory
TextFile.WriteLine "KernelDumpOnly: " & SubItems.KernelDumpOnly
TextFile.WriteLine "MiniDumpDirectory: " & SubItems.MiniDumpDirectory
TextFile.WriteLine "Name: " & SubItems.Name
TextFile.WriteLine "OverwriteExistingDebugFile: " & SubItems.OverwriteExistingDebugFile
TextFile.WriteLine "SendAdminAlert: " & SubItems.SendAdminAlert
TextFile.WriteLine "SettingID: " & SubItems.SettingID
TextFile.WriteLine "WriteDebugInfo: " & SubItems.WriteDebugInfo
TextFile.WriteLine "WriteToSystemLog: " & SubItems.WriteToSystemLog
TextFile.WriteLine "********************************************************************"
Next
TextFile.Close
OutFile.Run "notepad.exe c:\Win32_OSRecoveryConfiguration.txt",1,True
Get the OS Recovery Details using Win32_OSRecoveryConfiguration WMI Class Comments
No comments yet — be the first to post one!
Post a Comment