Win32_ClassicCOMClassSetting - 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_ClassicCOMClassSetting WMI class can be used in ActiveXperts Network Monitor to monitor your servers.


Win32_ClassicCOMClassSetting

Description

The Win32_ClassicCOMClassSetting WMI class represents the settings of a COM component.

Example(s)

On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ClassicCOMClassSetting",,48)
For Each objItem in colItems
    Wscript.Echo "AppID: " & objItem.AppID
    Wscript.Echo "AutoConvertToClsid: " & objItem.AutoConvertToClsid
    Wscript.Echo "AutoTreatAsClsid: " & objItem.AutoTreatAsClsid
    Wscript.Echo "Caption: " & objItem.Caption
    Wscript.Echo "ComponentId: " & objItem.ComponentId
    Wscript.Echo "Control: " & objItem.Control
    Wscript.Echo "DefaultIcon: " & objItem.DefaultIcon
    Wscript.Echo "Description: " & objItem.Description
    Wscript.Echo "InprocHandler: " & objItem.InprocHandler
    Wscript.Echo "InprocHandler32: " & objItem.InprocHandler32
    Wscript.Echo "InprocServer: " & objItem.InprocServer
    Wscript.Echo "InprocServer32: " & objItem.InprocServer32
    Wscript.Echo "Insertable: " & objItem.Insertable
    Wscript.Echo "JavaClass: " & objItem.JavaClass
    Wscript.Echo "LocalServer: " & objItem.LocalServer
    Wscript.Echo "LocalServer32: " & objItem.LocalServer32
    Wscript.Echo "LongDisplayName: " & objItem.LongDisplayName
    Wscript.Echo "ProgId: " & objItem.ProgId
    Wscript.Echo "SettingID: " & objItem.SettingID
    Wscript.Echo "ShortDisplayName: " & objItem.ShortDisplayName
    Wscript.Echo "ThreadingModel: " & objItem.ThreadingModel
    Wscript.Echo "ToolBoxBitmap32: " & objItem.ToolBoxBitmap32
    Wscript.Echo "TreatAsClsid: " & objItem.TreatAsClsid
    Wscript.Echo "TypeLibraryId: " & objItem.TypeLibraryId
    Wscript.Echo "Version: " & objItem.Version
    Wscript.Echo "VersionIndependentProgId: " & objItem.VersionIndependentProgId
Next