This class exposes product-specific properties and methods of the Software Licensing service.
Namespace value is root/CIMV2.
WMI Provider value is SppProvider.
ID of current product's Application
Last discovered KMS host name through DNS.
Last discovered KMS host port through DNS.
The expiration date of this product's application. After this date, the LicenseStatus will be Unlicensed, and cannot be Activated.
Extended grace time in minutes before the parent application becomes unlicensed.
Genuine status for this product's application.
Remaining time in minutes before the parent application becomes unlicensed. For KMS clients, this is the remaining time before re-Activation is required.
Indicates if KMS is enabled on the computer: 1 if true, 0 if false.
The count of currently active KMS clients on the KMS host. -1 indicates the host is not enabled as a KMS, or has not received any client licensing-requests.
The total count of failed KMS requests.
The count of KMS requests from clients with License Status=1 (Licensed).
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).
The dependency identifier for the family of SKUs used to determine license relationships for add-ons.
The family identifier for the SKU used to determine license relationships for add-ons.
Returns True if the product is identified as an add-on license.
License status of this product's application. 0=Unlicensed, 1=Licensed, 2=OOBGrace, 3=OOTGrace, 4=NonGenuineGrace, 5=Notification.
A diagnostic code which indicates why a computer is in a specific licensing state.
Software licensing server URL for the binding certificate
An identifier for this product's application that can be used for telephone or offline activation. Returns null if a product key is not installed.
Last five characters of this product's key. Returns null if a product key is not installed.
Software licensing server URL for the process certificate
Product key ID. Returns null if a product key is not installed.
Software licensing server URL for the product certificate
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 product.
Grant number in the token-based activation license that activated the product.
ID of the token-based activation license that activated the product.
Version of the token-based activation license that activated the product.
The trusted time for the product.
Software licensing server URL for the user license
The frequency, in minutes, of how often a client will contact the KMS host before the product is licensed.
The frequency, in minutes, of how often a client will contact the KMS host after the product is licensed.
Uninstalls a product key for the current product.
Activates the current product.
Activates a product by depositing an Offline Confirmation Identifier for this product when performing telephone or offline activation.
Gets license policy Information of type DWORD.
Gets policy information of type string.
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.
Returns token-based activation grants.
Returns token-based activation challenge.
Deposits token-based activation response.
SELECT * FROM SoftwareLicensingProduct
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.