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

Select by Class Type Search by Keyword
Show all classes

Category (Kategorie):

Operating System

Description (Beschreibung):

The Win32_WindowsProductActivation WMI class contains properties and methods related to Windows Product Activation (WPA), such as activation state and grace period. The class also provides the ability to activate the customer's computer online and offline. This class was added for Windows XP.

Availability (Verfügbarkeit):

WMI Class NameWindows Server 2003Windows XP ProfessionalWindows 2000Windows NT 4.0Windows 98
Win32_WindowsProductActivationYesYes---

Properties (Attribute):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
ActivationRequiredYesYes---
CaptionYesYes---
DescriptionYesYes---
IsNotificationOnYesYes---
ProductIDYesYes---
RemainingEvaluationPeriodYesYes---
RemainingGracePeriodYesYes---
ServerNameYesYes---
SettingIDYesYes---

Methods (Methoden):

ItemServer 2003XP ProWindows 2000NT 4.0Windows 98
ActivateOfflineYesYes---
ActivateOnlineYesYes---
GetInstallationIDYesYes---
SetNotificationYesYes---
SetProductKeyYesYes---

Sample Code (Beispiel):

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_WindowsProductActivation")
For Each objItem in colItems
    Wscript.Echo "Caption: " & objItem.Caption
Next

Links:

Link zur Original-Microsoft-Dokumentation