- WMI Library -
WMI Libraly > SoftwareLicensingProduct Class

SoftwareLicensingProduct Class

This class exposes product-specific properties and methods of the Software Licensing service.
Namespace value is root/CIMV2.
WMI Provider value is SppProvider.


Properties

  • ApplicationID
  • ID of current product's Application

  • Description
  • Product Description

  • DiscoveredKeyManagementServiceMachineName
  • Last discovered KMS host name through DNS.

  • DiscoveredKeyManagementServiceMachinePort
  • Last discovered KMS host port through DNS.

  • EvaluationEndDate
  • The expiration date of this product's application. After this date, the LicenseStatus will be Unlicensed, and cannot be Activated.

  • ExtendedGrace
  • Extended grace time in minutes before the parent application becomes unlicensed.

  • GenuineStatus
  • Genuine status for this product's application.

  • GracePeriodRemaining
  • Remaining time in minutes before the parent application becomes unlicensed. For KMS clients, this is the remaining time before re-Activation is required.

  • ID
  • Product Identifier

  • IsKeyManagementServiceMachine
  • Indicates if KMS is enabled on the computer: 1 if true, 0 if false.

  • KeyManagementServiceCurrentCount
  • 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.

  • KeyManagementServiceFailedRequests
  • The total count of failed KMS requests.

  • KeyManagementServiceLicensedRequests
  • The count of KMS requests from clients with License Status=1 (Licensed).

  • KeyManagementServiceMachine
  • The name of the KMS host. Returns null if SetKeyManagementServiceMachine has not been called.

  • KeyManagementServiceNonGenuineGraceRequests
  • The count of KMS requests from clients with License Status=4 (NonGenuineGrace).

  • KeyManagementServiceNotificationRequests
  • The count of KMS requests from clients with License Status=5 (Notification).

  • KeyManagementServiceOOBGraceRequests
  • The count of KMS requests from clients with License Status=2 (OOBGrace).

  • KeyManagementServiceOOTGraceRequests
  • The count of KMS requests from clients with License Status=3 (OOTGrace).

  • KeyManagementServicePort
  • The TCP port used by clients to send KMS-activation requests. Returns 0 if SetKeyManagementServicePort has not been called.

  • KeyManagementServiceProductKeyID
  • KMS product key ID. Returns null if not applicable.

  • KeyManagementServiceTotalRequests
  • The total count of valid KMS requests.

  • KeyManagementServiceUnlicensedRequests
  • The count of KMS requests from clients with License Status=0 (Unlicensed).

  • LicenseDependsOn
  • The dependency identifier for the family of SKUs used to determine license relationships for add-ons.

  • LicenseFamily
  • The family identifier for the SKU used to determine license relationships for add-ons.

  • LicenseIsAddon
  • Returns True if the product is identified as an add-on license.

  • LicenseStatus
  • License status of this product's application. 0=Unlicensed, 1=Licensed, 2=OOBGrace, 3=OOTGrace, 4=NonGenuineGrace, 5=Notification.

  • LicenseStatusReason
  • A diagnostic code which indicates why a computer is in a specific licensing state.

  • MachineURL
  • Software licensing server URL for the binding certificate

  • Name
  • Product Name

  • OfflineInstallationId
  • 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.

  • PartialProductKey
  • Last five characters of this product's key. Returns null if a product key is not installed.

  • ProcessorURL
  • Software licensing server URL for the process certificate

  • ProductKeyID
  • Product key ID. Returns null if a product key is not installed.

  • ProductKeyURL
  • Software licensing server URL for the product certificate

  • RequiredClientCount
  • The minimum number of clients required to connect to a KMS host in order to enable volume licensing.

  • TokenActivationAdditionalInfo
  • Additional information for token-based activation.

  • TokenActivationCertificateThumbprint
  • Thumbprint of the certificate that activated the product.

  • TokenActivationGrantNumber
  • Grant number in the token-based activation license that activated the product.

  • TokenActivationILID
  • ID of the token-based activation license that activated the product.

  • TokenActivationILVID
  • Version of the token-based activation license that activated the product.

  • TrustedTime
  • The trusted time for the product.

  • UseLicenseURL
  • Software licensing server URL for the user license

  • VLActivationInterval
  • The frequency, in minutes, of how often a client will contact the KMS host before the product is licensed.

  • VLRenewalInterval
  • The frequency, in minutes, of how often a client will contact the KMS host after the product is licensed.


    Methods

  • UninstallProductKey
  • Uninstalls a product key for the current product.

  • Activate
  • Activates the current product.

  • DepositOfflineConfirmationId
  • Activates a product by depositing an Offline Confirmation Identifier for this product when performing telephone or offline activation.

  • GetPolicyInformationDWord
  • Gets license policy Information of type DWORD.

  • GetPolicyInformationString
  • Gets policy information of type string.

  • SetKeyManagementServiceMachine
  • Sets the KMS host name to use for volume activation.

  • ClearKeyManagementServiceMachine
  • Clears any previously configured KMS host name.

  • SetKeyManagementServicePort
  • Sets the TCP port used by a client to make requests of a KMS host. If not specified, port 1688 is used.

  • ClearKeyManagementServicePort
  • Clears any previously specified port number.

  • GetTokenActivationGrants
  • Returns token-based activation grants.

  • GenerateTokenActivationChallenge
  • Returns token-based activation challenge.

  • DepositTokenActivationResponse
  • Deposits token-based activation response.


    Example WQL

    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.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -
    http://library.wmifun.net/

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...