GetInstallationID method of the Win32_WindowsProductActivation class
The GetInstallationID WMI class method retrieves the installation ID.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.
Syntax
uint32 GetInstallationID(
[out] string InstallationID
);
Parameters
-
InstallationID [out]
-
Receives the installation ID if the method completes successfully. Otherwise, this part will be empty.
The installation ID is a string generated from the product ID (PID) and the computer's hardware ID. This string is identical to the installation ID that is displayed on the telephone activation page and is 50 digits in length. The customer must supply the installation ID to the Microsoft Clearinghouse license server to obtain a confirmation ID. The confirmation ID is required to call the ActivateOffline method.
Remarks
Note that each call to the GetInstallationID method generates a unique installation ID. You must match the confirmation ID with the corresponding installation ID.
Note
Windows Product Activation is not available on the Itanium-based versions of the Windows operating system.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
End of client support |
Windows XP |
End of server support |
Windows Server 2003 R2 |
Namespace |
Root\CIMV2 |
MOF |
|
DLL |
|