Reference for Win32_Product
|
|
Category (Kategorie): Windows Installer Applications
Description (Beschreibung): The Win32_Product WMI class represents products as they are installed by Windows Installer. A product generally correlates to a single installation package.
Availability (Verfügbarkeit): WMI Class Name | Windows Server 2003 | Windows XP Professional | Windows 2000 | Windows NT 4.0 | Windows 98 | Win32_Product | Optional | Yes | Yes | Yes | Yes |
Properties (Attribute): Item | Server 2003 | XP Pro | Windows 2000 | NT 4.0 | Windows 98 | Caption | - | Yes | Yes | Yes | Yes | Description | - | Yes | Yes | Yes | Yes | IdentifyingNumber | - | Yes | Yes | Yes | Yes | InstallDate | - | Yes | Yes | Yes | Yes | InstallDate2 | - | Yes | - | - | - | InstallLocation | - | Yes | Yes | Yes | Yes | InstallState | - | Yes | Yes | Yes | Yes | Name | - | Yes | Yes | Yes | Yes | PackageCache | - | Yes | Yes | Yes | Yes | SKUNumber | - | Yes | Yes | Yes | Yes | Vendor | - | Yes | Yes | Yes | Yes | Version | - | Yes | Yes | Yes | Yes |
Methods (Methoden): Item | Server 2003 | XP Pro | Windows 2000 | NT 4.0 | Windows 98 | Admin | - | Yes | Yes | Yes | Yes | Advertise | - | Yes | Yes | Yes | Yes | Configure | - | Yes | Yes | Yes | Yes | Install | - | Yes | Yes | Yes | Yes | Reinstall | - | Yes | Yes | Yes | Yes | Uninstall | - | Yes | Yes | Yes | Yes | Upgrade | - | Yes | Yes | Yes | Yes |
Sample Code (Beispiel):
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Product")
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Next
Links:
Link zur Original-Microsoft-Dokumentation
www.IT-Visions.de, (C) Dr. Holger Schwichtenberg
|