|
Win32_ApplicationService Win32_Binary Win32_BindImageAction Win32_ClassInfoAction Win32_CommandLineAccess Win32_Condition Win32_CreateFolderAction Win32_DuplicateFileAction Win32_EnvironmentSpecification Win32_ExtensionInfoAction Win32_FileSpecification Win32_FontInfoAction Win32_IniFileSpecification Win32_LaunchCondition Win32_MIMEInfoAction Win32_MoveFileAction Win32_MSIResource Win32_ODBCAttribute Win32_ODBCDataSourceSpecification Win32_ODBCDriverSpecification Win32_ODBCSourceAttribute Win32_ODBCTranslatorSpecification Win32_Patch Win32_PatchPackage Win32_Product Win32_ProgIDSpecification Win32_Property Win32_PublishComponentAction Win32_RemoveFileAction Win32_RemoveIniAction Win32_SelfRegModuleAction Win32_ServiceControl Win32_ServiceSpecification Win32_ShortcutAction Win32_ShortcutSAP Win32_SoftwareElement Win32_SoftwareElementCondition Win32_SoftwareFeature Win32_SoftwareFeatureAction Win32_TypeLibraryAction
Win32_ApplicationService The Win32_ApplicationService WMI class represents any installed or advertised component or application available on the system. Instances of this class include all properly installed and instrumented executable files.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ApplicationService",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CreationClassName: " & objItem.CreationClassName
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Started: " & objItem.Started
Wscript.Echo "StartMode: " & objItem.StartMode
Wscript.Echo "Status: " & objItem.Status
Wscript.Echo "SystemCreationClassName: " & objItem.SystemCreationClassName
Wscript.Echo "SystemName: " & objItem.SystemName
Next
Win32_Binary The Win32_Binary WMI class represents binary information (such as bitmaps, icons, executable files, and so on) that are used by an installation.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Binary",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Data: " & objItem.Data
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "ProductCode: " & objItem.ProductCode
Wscript.Echo "SettingID: " & objItem.SettingID
Next
Win32_BindImageAction The Win32_BindImageAction WMI class binds each executable file that needs to be bound to the DLLs imported by it. The files are bound by computing the virtual address of each function imported from all DLLs. The computed virtual address is then saved in the importing image's Import Address Table (IAT). The action works on each file installed locally.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_BindImageAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "File: " & objItem.File
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Path: " & objItem.Path
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_ClassInfoAction The Win32_ClassInfoAction WMI class manages the registration of COM class information with the system. In the Advertise mode, the action registers all COM classes for which the corresponding feature is enabled. Otherwise, the action registers COM classes for which the corresponding feature is currently selected to be installed.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ClassInfoAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "AppID: " & objItem.AppID
Wscript.Echo "Argument: " & objItem.Argument
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CLSID: " & objItem.CLSID
Wscript.Echo "Context: " & objItem.Context
Wscript.Echo "DefInprocHandler: " & objItem.DefInprocHandler
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "FileTypeMask: " & objItem.FileTypeMask
Wscript.Echo "Insertable: " & objItem.Insertable
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "ProgID: " & objItem.ProgID
Wscript.Echo "RemoteName: " & objItem.RemoteName
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Wscript.Echo "VIProgID: " & objItem.VIProgID
Next
Win32_CommandLineAccess The Win32_CommandLineAccess WMI class represents the command line interface to a service or application. The name of the access point is always the full command line text.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_CommandLineAccess",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CommandLine: " & objItem.CommandLine
Wscript.Echo "CreationClassName: " & objItem.CreationClassName
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Status: " & objItem.Status
Wscript.Echo "SystemCreationClassName: " & objItem.SystemCreationClassName
Wscript.Echo "SystemName: " & objItem.SystemName
Next
Win32_Condition The Win32_Condition WMI class represents the criteria used to determine the selection state of any entry in the Win32_Feature class, based on a conditional expression. If Win32_Condition evaluates to True, the corresponding feature is installed at the level specified by the Level property. Using this mechanism, any feature can be permanently disabled (by setting Level to 0), set to be always installed (by setting Level to 1), or set to a different install priority (by setting Level to an intermediate value). The level may be determined based upon any conditional statement, such as a test for platform, operating system, a particular property setting, etc.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Condition",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CheckID: " & objItem.CheckID
Wscript.Echo "CheckMode: " & objItem.CheckMode
Wscript.Echo "Condition: " & objItem.Condition
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Feature: " & objItem.Feature
Wscript.Echo "Level: " & objItem.Level
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_CreateFolderAction The Win32_CreateFolderAction WMI class represents an action that creates empty folders for software elements set to be installed locally. When a folder is newly-created, it is registered with the appropriate component identifier.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_CreateFolderAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "DirectoryName: " & objItem.DirectoryName
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_DuplicateFileAction The Win32_DuplicateFileAction WMI class represents a file that is duplicated at install time, either to a different directory than the original file, or to the same directory, but with a different name.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_DuplicateFileAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "DeleteAfterCopy: " & objItem.DeleteAfterCopy
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Destination: " & objItem.Destination
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "FileKey: " & objItem.FileKey
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "Source: " & objItem.Source
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_EnvironmentSpecification The Win32_EnvironmentSpecification WMI class contains information about any environment variables that may need to be registered for their associated products installation.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_EnvironmentSpecification",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CheckID: " & objItem.CheckID
Wscript.Echo "CheckMode: " & objItem.CheckMode
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Environment: " & objItem.Environment
Wscript.Echo "Name: " & objItem.Name
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
Win32_ExtensionInfoAction The Win32_ExtensionInfoAction WMI class manages the registration of extension-related information with the system. The action registers the extension servers for which the corresponding feature is currently selected to be uninstalled.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ExtensionInfoAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Argument: " & objItem.Argument
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Command: " & objItem.Command
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "Extension: " & objItem.Extension
Wscript.Echo "MIME: " & objItem.MIME
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "ProgID: " & objItem.ProgID
Wscript.Echo "ShellNew: " & objItem.ShellNew
Wscript.Echo "ShellNewValue: " & objItem.ShellNewValue
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Verb: " & objItem.Verb
Wscript.Echo "Version: " & objItem.Version
Next
Win32_FileSpecification The Win32_FileSpecification WMI class represents a source file with its various attributes, ordered by a unique, non-localized identifier. For uncompressed files, the File property is ignored, and the FileName property is used for both source and destination file name. You must set the Uncompressed bit of the Attributes property for any file that is not compressed in a cabinet.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_FileSpecification",,48)
For Each objItem in colItems
Wscript.Echo "Attributes: " & objItem.Attributes
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 "FileID: " & objItem.FileID
Wscript.Echo "FileSize: " & objItem.FileSize
Wscript.Echo "Language: " & objItem.Language
Wscript.Echo "MD5Checksum: " & objItem.MD5Checksum
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Sequence: " & objItem.Sequence
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_FontInfoAction The Win32_FontInfoAction WMI class represents fonts which have been registered with the system at the same time that the associated software element was installed.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_FontInfoAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "File: " & objItem.File
Wscript.Echo "FontTitle: " & objItem.FontTitle
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_IniFileSpecification 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.
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
Win32_LaunchCondition The Win32_LaunchCondition WMI class contains a list of conditions, all of which must be satisfied for the action to succeed.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_LaunchCondition",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CheckID: " & objItem.CheckID
Wscript.Echo "CheckMode: " & objItem.CheckMode
Wscript.Echo "Condition: " & objItem.Condition
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_MIMEInfoAction The Win32_MIMEInfoAction WMI class registers the MIME-related registry information with the system. In the Advertise mode, the action registers all MIME info for servers for which the corresponding feature is enabled. Otherwise, the action registers MIME info for servers for which the corresponding feature is currently selected to be installed.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_MIMEInfoAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CLSID: " & objItem.CLSID
Wscript.Echo "ContentType: " & objItem.ContentType
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "Extension: " & objItem.Extension
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_MoveFileAction The Win32_MoveFileAction WMI class allows the author to locate files that already exist on the user's computer, and move or copy those files to a new location.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_MoveFileAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "DestFolder: " & objItem.DestFolder
Wscript.Echo "DestName: " & objItem.DestName
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "FileKey: " & objItem.FileKey
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Options: " & objItem.Options
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "SourceFolder: " & objItem.SourceFolder
Wscript.Echo "SourceName: " & objItem.SourceName
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_MSIResource The Win32_MSIResource abstract WMI class represents any resources that are used by the Installer during the course of an installation, patch or upgrade.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_MSIResource",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "SettingID: " & objItem.SettingID
Next
Win32_ODBCAttribute Instances of the Win32_ODBCAttribute WMI class represent attributes that are set for an ODBC driver.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ODBCAttribute",,48)
For Each objItem in colItems
Wscript.Echo "Attribute: " & objItem.Attribute
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Driver: " & objItem.Driver
Wscript.Echo "SettingID: " & objItem.SettingID
Wscript.Echo "Value: " & objItem.Value
Next
Win32_ODBCDataSourceSpecification The Win32_ODBCDataSourceAttribute association WMI class relates an Installer check with any setting information it requires.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ODBCDataSourceSpecification",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CheckID: " & objItem.CheckID
Wscript.Echo "CheckMode: " & objItem.CheckMode
Wscript.Echo "DataSource: " & objItem.DataSource
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "DriverDescription: " & objItem.DriverDescription
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Registration: " & objItem.Registration
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_ODBCDriverSpecification The Win32_ODBCDriverSpecification WMI class represents any ODBC driver that is to be installed as part of a particular product.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ODBCDriverSpecification",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CheckID: " & objItem.CheckID
Wscript.Echo "CheckMode: " & objItem.CheckMode
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Driver: " & objItem.Driver
Wscript.Echo "File: " & objItem.File
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SetupFile: " & objItem.SetupFile
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_ODBCSourceAttribute The Win32_ODBCSourceAttribute class represents the information regarding an ODBC source and the attributes that must be set for installation.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ODBCSourceAttribute",,48)
For Each objItem in colItems
Wscript.Echo "Attribute: " & objItem.Attribute
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "DataSource: " & objItem.DataSource
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "SettingID: " & objItem.SettingID
Wscript.Echo "Value: " & objItem.Value
Next
Win32_ODBCTranslatorSpecification The Win32_ODBCTranslatorSpecification WMI class represents any ODBC translator that is included as part of a product's installation.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ODBCTranslatorSpecification",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CheckID: " & objItem.CheckID
Wscript.Echo "CheckMode: " & objItem.CheckMode
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "File: " & objItem.File
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SetupFile: " & objItem.SetupFile
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Translator: " & objItem.Translator
Wscript.Echo "Version: " & objItem.Version
Next
Win32_Patch The Win32_Patch WMI class represents an individual patch that is to be applied to a particular file and whose source resides at a specified location.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Patch",,48)
For Each objItem in colItems
Wscript.Echo "Attributes: " & objItem.Attributes
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "File: " & objItem.File
Wscript.Echo "PatchSize: " & objItem.PatchSize
Wscript.Echo "ProductCode: " & objItem.ProductCode
Wscript.Echo "Sequence: " & objItem.Sequence
Wscript.Echo "SettingID: " & objItem.SettingID
Next
Win32_PatchPackage The Win32_Patch WMI class represents an individual patch that is to be applied to a particular file and whose source resides at a specified location.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_PatchPackage",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "PatchID: " & objItem.PatchID
Wscript.Echo "ProductCode: " & objItem.ProductCode
Wscript.Echo "SettingID: " & objItem.SettingID
Next
Win32_Product The Win32_Product WMI class represents products as they are installed by Windows Installer. A product generally correlates to one installation package.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Product",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "IdentifyingNumber: " & objItem.IdentifyingNumber
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "InstallLocation: " & objItem.InstallLocation
Wscript.Echo "InstallState: " & objItem.InstallState
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "PackageCache: " & objItem.PackageCache
Wscript.Echo "SKUNumber: " & objItem.SKUNumber
Wscript.Echo "Vendor: " & objItem.Vendor
Wscript.Echo "Version: " & objItem.Version
Next
Win32_ProgIDSpecification The Win32_ProgIDSpecification WMI class represent any programmatic identifier (ProgID) that needs to be registered during a given installation.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ProgIDSpecification",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CheckID: " & objItem.CheckID
Wscript.Echo "CheckMode: " & objItem.CheckMode
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Parent: " & objItem.Parent
Wscript.Echo "ProgID: " & objItem.ProgID
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_Property The Win32_Property WMI class contains the property names and values for all defined properties in the installation. Properties with Null values are not present in the table.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Property",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "ProductCode: " & objItem.ProductCode
Wscript.Echo "Property: " & objItem.Property
Wscript.Echo "SettingID: " & objItem.SettingID
Wscript.Echo "Value: " & objItem.Value
Next
Win32_PublishComponentAction The Win32_PublishComponentAction WMI class manages the advertisement of the components that may be faulted by other products with the system. In the Advertise mode, the action publishes the all components for which the corresponding feature is enabled. Otherwise, the action publishes components for which the corresponding feature is currently selected to be installed.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_PublishComponentAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "AppData: " & objItem.AppData
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "ComponentID: " & objItem.ComponentID
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Qual: " & objItem.Qual
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_RemoveFileAction The Win32_RemoveFileAction WMI class represents files previously installed which are to be removed. The class can also remove specific author-specified files that weren't installed by the installer. Each of these files is 'gated' by a link to an entry in the software element class; those files whose components are resolved to any 'active' Action state (that is, not in the 'off', or NULL, state) will be removed (if the file exists in the specified directory, of course). This implies that removal of files will be attempted when the gating software element is first installed, during a reinstall, and again when the gating software element is removed.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_RemoveFileAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "DirProperty: " & objItem.DirProperty
Wscript.Echo "File: " & objItem.File
Wscript.Echo "FileKey: " & objItem.FileKey
Wscript.Echo "FileName: " & objItem.FileName
Wscript.Echo "InstallMode: " & objItem.InstallMode
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_RemoveIniAction The Win32_RemoveIniAction WMI class deletes whatever .INI file information that the application desires. The deletion of the information is gated by the component class. A .INI value is deleted if the corresponding component has been set to be installed either locally or run from source.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_RemoveIniAction",,48)
For Each objItem in colItems
Wscript.Echo "Action: " & objItem.Action
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "key: " & objItem.key
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
Win32_SelfRegModuleAction The Win32_SelfRegModuleAction WMI class represents modules that are processed at install time. A common form of this processing is the registration of a DLL.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_SelfRegModuleAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Cost: " & objItem.Cost
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "File: " & objItem.File
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_ServiceControl The Win32_ServiceControl WMI class represents instructions for controlling both installed and uninstalled services.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ServiceControl",,48)
For Each objItem in colItems
Wscript.Echo "Arguments: " & objItem.Arguments
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Event: " & objItem.Event
Wscript.Echo "ID: " & objItem.ID
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "ProductCode: " & objItem.ProductCode
Wscript.Echo "SettingID: " & objItem.SettingID
Wscript.Echo "Wait: " & objItem.Wait
Next
Win32_ServiceSpecification The Win32_ServiceSpecification WMI class represents a service that is to be installed along with an associated package.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ServiceSpecification",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CheckID: " & objItem.CheckID
Wscript.Echo "CheckMode: " & objItem.CheckMode
Wscript.Echo "Dependencies: " & objItem.Dependencies
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "DisplayName: " & objItem.DisplayName
Wscript.Echo "ErrorControl: " & objItem.ErrorControl
Wscript.Echo "ID: " & objItem.ID
Wscript.Echo "LoadOrderGroup: " & objItem.LoadOrderGroup
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Password: " & objItem.Password
Wscript.Echo "ServiceType: " & objItem.ServiceType
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "StartName: " & objItem.StartName
Wscript.Echo "StartType: " & objItem.StartType
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_ShortcutAction The Win32_ShortcutAction WMI class manages the creation of shortcuts. In the Advertise mode, the action creates shortcuts to the key files of components of features that are enabled. Advertised shortcuts are those for which the Target property is the feature of the component and the directory of the shortcut is one of the Shell folders or below one. Advertised shortcuts are created with a Microsoft installer technology Descriptor as the target.
Non-advertised shortcuts are those for which the Target property in the Win32_ShortcutAction class is a property or the directory of the shortcut is not one of the Shell folders or below one. In the non-advertise mode (normal install), the action creates shortcuts to the key files of components of features that are selected for installation as well as non-advertised shortcuts whose component is selected for installation.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ShortcutAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Arguments: " & objItem.Arguments
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "HotKey: " & objItem.HotKey
Wscript.Echo "IconIndex: " & objItem.IconIndex
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Shortcut: " & objItem.Shortcut
Wscript.Echo "ShowCmd: " & objItem.ShowCmd
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "Target: " & objItem.Target
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Wscript.Echo "WkDir: " & objItem.WkDir
Next
Win32_ShortcutSAP The Win32_ShortcutSAP association WMI class relates the connection between an application access point and the corresponding shortcut.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_ShortcutSAP",,48)
For Each objItem in colItems
Wscript.Echo "Action: " & objItem.Action
Wscript.Echo "Element: " & objItem.Element
Next
Win32_SoftwareElement The Win32_SoftwareElement WMI class represents a software element, part of a software feature (a distinct subset of a product which may contain one or more elements). Each software element is defined in a Win32_SoftwareElement instance, and the association between a feature and its Win32_SoftwareFeature instance is defined in the Win32_SoftwareFeatureSoftwareElement association class.
Any component can be shared between two or more Win32_SoftwareFeature instances. If two or more features reference the same component, that component is selected for installation if any of these features are selected.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_SoftwareElement",,48)
For Each objItem in colItems
Wscript.Echo "Attributes: " & objItem.Attributes
Wscript.Echo "BuildNumber: " & objItem.BuildNumber
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CodeSet: " & objItem.CodeSet
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "IdentificationCode: " & objItem.IdentificationCode
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "InstallState: " & objItem.InstallState
Wscript.Echo "LanguageEdition: " & objItem.LanguageEdition
Wscript.Echo "Manufacturer: " & objItem.Manufacturer
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "OtherTargetOS: " & objItem.OtherTargetOS
Wscript.Echo "Path: " & objItem.Path
Wscript.Echo "SerialNumber: " & objItem.SerialNumber
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "Status: " & objItem.Status
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_SoftwareElementCondition The Win32_SoftwareElementCondition WMI class represents conditional checks that must be evaluated to TRUE before their associated Win32_SoftwareElement component can be installed.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_SoftwareElementCondition",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CheckID: " & objItem.CheckID
Wscript.Echo "CheckMode: " & objItem.CheckMode
Wscript.Echo "Condition: " & objItem.Condition
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
Win32_SoftwareFeature The Win32_SoftwareFeature WMI class represents a distinct subset of a product, consisting of one or more software elements. Each software element is defined in a Win32_SoftwareElement instance, and the association between a feature and its Win32_SoftwareFeature instance is defined in the Win32_SoftwareFeatureSoftwareElements association class.
Any component can be shared between two or more Win32_SoftwareFeature instances. If two or more features reference the same component, that component is selected for installation if any of these features are selected.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_SoftwareFeature",,48)
For Each objItem in colItems
Wscript.Echo "Accesses: " & objItem.Accesses
Wscript.Echo "Attributes: " & objItem.Attributes
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "IdentifyingNumber: " & objItem.IdentifyingNumber
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "InstallState: " & objItem.InstallState
Wscript.Echo "LastUse: " & objItem.LastUse
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "ProductName: " & objItem.ProductName
Wscript.Echo "Status: " & objItem.Status
Wscript.Echo "Vendor: " & objItem.Vendor
Wscript.Echo "Version: " & objItem.Version
Next
Win32_SoftwareFeatureAction This Win32_SoftwareFeatureAction association WMI class relates an Installer feature with an action used to register and/or publish the feature.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_SoftwareFeatureAction",,48)
For Each objItem in colItems
Wscript.Echo "Action: " & objItem.Action
Wscript.Echo "Element: " & objItem.Element
Next
Win32_TypeLibraryAction The Win32_TypeLibraryAction schema WMI class registers type libraries with the system. The action works on each file referenced which is triggered to be installed.
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_TypeLibraryAction",,48)
For Each objItem in colItems
Wscript.Echo "ActionID: " & objItem.ActionID
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Cost: " & objItem.Cost
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Direction: " & objItem.Direction
Wscript.Echo "Language: " & objItem.Language
Wscript.Echo "LibID: " & objItem.LibID
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementState
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem
Wscript.Echo "Version: " & objItem.Version
Next
|
|