by Karthikeyan (187 Submissions)
Category: Miscellaneous
Compatability: VB Script
Difficulty: Unknown Difficulty
Originally Published: Tue 11th May 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Get the info about WMI Settings using Win32_WMISetting WMI Class
'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_WMISetting.txt", ForAppending, True)
TextFile.WriteLine "Script for Win32_WMISetting Class by Karthikeyan"
TextFile.WriteLine
Set WMIService = GetObject("winmgmts:\\" & Computer & "\root\cimv2")
Set Items = WMIService.ExecQuery("Select * from Win32_WMISetting",,48)
For Each SubItems in Items
TextFile.WriteLine "********************************************************************"
TextFile.WriteLine "ASPScriptDefaultNamespace: " & SubItems.ASPScriptDefaultNamespace
TextFile.WriteLine "ASPScriptEnabled: " & SubItems.ASPScriptEnabled
TextFile.WriteLine "AutorecoverMofs: " & SubItems.AutorecoverMofs
TextFile.WriteLine "AutoStartWin9X: " & SubItems.AutoStartWin9X
TextFile.WriteLine "BackupInterval: " & SubItems.BackupInterval
TextFile.WriteLine "BackupLastTime: " & SubItems.BackupLastTime
TextFile.WriteLine "BuildVersion: " & SubItems.BuildVersion
TextFile.WriteLine "Caption: " & SubItems.Caption
TextFile.WriteLine "DatabaseDirectory: " & SubItems.DatabaseDirectory
TextFile.WriteLine "DatabaseMaxSize: " & SubItems.DatabaseMaxSize
TextFile.WriteLine "Description: " & SubItems.Description
TextFile.WriteLine "EnableAnonWin9xConnections: " & SubItems.EnableAnonWin9xConnections
TextFile.WriteLine "EnableEvents: " & SubItems.EnableEvents
TextFile.WriteLine "EnableStartupHeapPreallocation: " & SubItems.EnableStartupHeapPreallocation
TextFile.WriteLine "HighThresholdOnClientObjects: " & SubItems.HighThresholdOnClientObjects
TextFile.WriteLine "HighThresholdOnEvents: " & SubItems.HighThresholdOnEvents
TextFile.WriteLine "InstallationDirectory: " & SubItems.InstallationDirectory
TextFile.WriteLine "LastStartupHeapPreallocation: " & SubItems.LastStartupHeapPreallocation
TextFile.WriteLine "LoggingDirectory: " & SubItems.LoggingDirectory
TextFile.WriteLine "LoggingLevel: " & SubItems.LoggingLevel
TextFile.WriteLine "LowThresholdOnClientObjects: " & SubItems.LowThresholdOnClientObjects
TextFile.WriteLine "LowThresholdOnEvents: " & SubItems.LowThresholdOnEvents
TextFile.WriteLine "MaxLogFileSize: " & SubItems.MaxLogFileSize
TextFile.WriteLine "MaxWaitOnClientObjects: " & SubItems.MaxWaitOnClientObjects
TextFile.WriteLine "MaxWaitOnEvents: " & SubItems.MaxWaitOnEvents
TextFile.WriteLine "MofSelfInstallDirectory: " & SubItems.MofSelfInstallDirectory
TextFile.WriteLine "SettingID: " & SubItems.SettingID
TextFile.WriteLine "********************************************************************"
Next
TextFile.Close
OutFile.Run "notepad.exe c:\Win32_WMISetting.txt",1,True
No comments have been posted about Get the info about WMI Settings using Win32_WMISetting WMI Class. Why not be the first to post a comment about Get the info about WMI Settings using Win32_WMISetting WMI Class.