Win32_IniFileSpecification - WMI sample in VBScript

The foundations for Manageability in Windows 7/2008/Vista/XP/2000 and Millennium Edition/'98 are Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).

ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself.

On this site, you can find many WMI samples.

The Win32_IniFileSpecification WMI class can be used in ActiveXperts Network Monitor to monitor your servers.


Win32_IniFileSpecification

Description

The Win32_IniFileSpecification WMI class contains the .INI information that the application needs to set in an .INI file. The .INI file information is written out when the corresponding component is selected to be installed, either locally or run from source.

Example(s)

On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_IniFileSpecification",,48)
For Each objItem in colItems
    Wscript.Echo "Action: " & objItem.Action
    Wscript.Echo "Caption: " & objItem.Caption
    Wscript.Echo "CheckID: " & objItem.CheckID
    Wscript.Echo "CheckMode: " & objItem.CheckMode
    Wscript.Echo "CheckSum: " & objItem.CheckSum
    Wscript.Echo "CRC1: " & objItem.CRC1
    Wscript.Echo "CRC2: " & objItem.CRC2
    Wscript.Echo "CreateTimeStamp: " & objItem.CreateTimeStamp
    Wscript.Echo "Description: " & objItem.Description
    Wscript.Echo "FileSize: " & objItem.FileSize
    Wscript.Echo "IniFile: " & objItem.IniFile
    Wscript.Echo "key: " & objItem.key
    Wscript.Echo "MD5Checksum: " & objItem.MD5Checksum
    Wscript.Echo "Name: " & objItem.Name
    Wscript.Echo "Section: " & objItem.Section
    Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
    Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
    Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
    Wscript.Echo "Value: " & objItem.Value
    Wscript.Echo "Version: " & objItem.Version
Next