Reference for Win32_Product
(Diese Seite wurde noch nicht auf das neue Layout umgestellt!)

Select by Class Type Search by Keyword
Show all classes

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 NameWindows Server 2003Windows XP ProfessionalWindows 2000Windows NT 4.0Windows 98
Win32_ProductOptionalYesYesYesYes

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
Caption-YesYesYesYes
Description-YesYesYesYes
IdentifyingNumber-YesYesYesYes
InstallDate-YesYesYesYes
InstallDate2-Yes---
InstallLocation-YesYesYesYes
InstallState-YesYesYesYes
Name-YesYesYesYes
PackageCache-YesYesYesYes
SKUNumber-YesYesYesYes
Vendor-YesYesYesYes
Version-YesYesYesYes

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
Admin-YesYesYesYes
Advertise-YesYesYesYes
Configure-YesYesYesYes
Install-YesYesYesYes
Reinstall-YesYesYesYes
Uninstall-YesYesYesYes
Upgrade-YesYesYesYes

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