次の方法で共有


InstallProductKey method of the SoftwareLicensingService class

Installs a product key for the current product.

Syntax

unit32 InstallProductKey(
  [in] string ProductKey
);

Parameters

ProductKey [in]

Specifies the product key to install.

Requirements

Minimum supported client
Windows 7
Minimum supported server
Windows Server 2008 R2
Namespace
Root\CIMV2
MOF
SppWmi.mof
DLL
SppWmi.dll

See also

SoftwareLicensingService