This class exposes product-independent properties and methods of the Software Licensing service.
Namespace value is root/CIMV2.
WMI Provider value is SppProvider.
The GUID that identifies a KMS client to a KMS host. The client includes this in requests it sends to the KMS.
Last discovered KMS host name through DNS.
Last discovered KMS host port through DNS.
Indicates whether KMS is enabled on the computer: 0 if false, 1 if true.
Indicates whether the volume activation through key management service is disabled.
The count of currently active KMS clients on the KMS host. -1 indicates the computer is not enabled as a KMS, or has not received any client licensing-requests.
Indicates the DNS publishing status of a KMS host: 0=Disabled, 1=Auto publish enabled (default).
The count of invalid KMS requests.
Indicates the caching status of KMS host name and port: 0=Caching disabled, 1=Caching enabled (default).
The count of KMS requests from clients with License Status=1 (Licensed).
The TCP port the KMS host uses to listen for activation requests.
Indicates the thread priority status of KMS service: 0=Normal Priority (default), 1=Low priority.
The name of the KMS host. Returns null if SetKeyManagementServiceMachine has not been called.
The count of KMS requests from clients with License Status=4 (NonGenuineGrace).
The count of KMS requests from clients with License Status=5 (Notification).
The count of KMS requests from clients with License Status=2 (OOBGrace).
The count of KMS requests from clients with License Status=3 (OOTGrace).
The TCP port used by clients to send KMS-activation requests. Returns 0 if SetKeyManagementServicePort has not been called.
KMS product key ID. Returns null if not applicable.
The total count of valid KMS requests.
The count of KMS requests from clients with License Status=0 (Unlicensed).
Indicates whether the licensing policy-cache needs to be updated: 0=not required, 1=Refresh required.
Remaining number of times the client can be rearmed successfully.
The minimum number of clients required to connect to a KMS host in order to enable volume licensing.
Additional information for token-based activation.
Thumbprint of the certificate that activated the machine.
Grant number in the token-based activation license that activated the machine.
ID of the token-based activation license that activated the machine.
Version of the token-based activation license that activated the machine.
Version of the Software Licensing service
The frequency, in minutes, of how often a client will contact the KMS host before the client is licensed.
The frequency, in minutes, of how often a client will contact the KMS host after the client is licensed.
Install a product key.
Installs a license.
Install a license package for the current product.
Sets the KMS host name to use for volume activation.
Clears any previously configured KMS host name.
Sets the TCP port used by a client to make requests of a KMS host. If not specified, port 1688 is used.
Clears any previously specified port number.
The activation frequency, in minutes, of how often KMS-clients will contact the KMS host before they become licensed. The frequency must be greater than or equal to 15 and less than or equal to 43200. An error is returned if the method is called and the computer is not a KMS.
The renewal frequency, in minutes, of how often KMS-clients will contact the KMS host after they have become licensed. The frequency must be greater than or equal to 15 and less than or equal to 43200. An error is returned if the method is called and the computer is not a KMS.
Clears product key from the registry.
Performs online Genuine Validation. Calling this method may change the Genuine status of the computer.
Resets the licensing status of the computer to OOB Grace (see LicenseStatus). Note: you must reboot the client for the changes to take effect.
Updates the licensing status of Windows so that applications have access to current licensing information.
Sets the TCP port used by a KMS host to listen for activation requests. Applies to KMS hosts only. If not specified, 1688 is used.
Clears any previously specified listening port. Applies to KMS hosts only.
Enable/Disable the DNS Publishing on a KMS host computer: 0=Enable, 1=Disable.
Enable/Disable KMS service running with low priority: 0=Disable, 1=Enable.
Enable/Disable the caching of the KMS hostname and port on a volume activation client computer: 0=Enable, 1=Disable.
Enable/Disable volume activation through KMS machine: 0=Enable, 1=Disable.
SELECT * FROM SoftwareLicensingService
About this site information
This contents is created by WMI having class information.
WMI Environment is Windows Server 2008 R2 Enterprise Edition.
is Microsoft documents for "Managing Windows with WMI"
That is VB(Visual Basic) scripting sample.
is Microsoft documents for "Advanced Programming Topics in WMI .NET"
That is VB.net(Visual Basic .net) scripting sample.