SoftwareLicensingProduct class
Not supported. Use the SoftwareLicensingProduct class.
Windows Vista and Windows Server 2008: This class exposes the product-specific properties and methods of the Software Licensing service.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.
Syntax
class SoftwareLicensingProduct
{
string ID;
string Name;
string Description;
string ApplicationID;
string ProcessorURL;
string MachineURL;
string ProductKeyURL;
string UseLicenseURL;
uint32 LicenseStatus;
uint32 LicenseStatusReason;
uint32 GracePeriodRemaining;
datetime EvaluationEndDate;
string OfflineInstallationId;
string PartialProductKey;
string ProductKeyID;
string LicenseFamily;
string LicenseDependsOn;
boolean LicenseIsAddon;
};
Members
The SoftwareLicensingProduct class has these types of members:
Methods
The SoftwareLicensingProduct class has these methods.
Method | Description |
---|---|
Activate | Activates the product. |
DepositOfflineConfirmationId | Activates the product by depositing an Offline Confirmation Identifier for this product when performing a telephone activation. |
UninstallProductKey | Uninstalls the product key. |
Properties
The SoftwareLicensingProduct class has these properties.
-
ApplicationID
-
-
Data type: string
-
Access type: Read-only
Specifies the ID of current product application.
-
-
Description
-
-
Data type: string
-
Access type: Read-only
Specifies the product description.
-
-
EvaluationEndDate
-
-
Data type: datetime
-
Access type: Read-only
Specifies the expiration date of this product application. After this date, the LicenseStatus property is set to Unlicensed and cannot be activated.
-
-
GracePeriodRemaining
-
-
Data type: uint32
-
Access type: Read-only
Specifies the remaining time, in minutes, before the parent application goes into notification mode. For volume clients, this is the remaining time before reactivation is required.
-
-
ID
-
-
Data type: string
-
Access type: Read-only
-
Qualifiers: Key
Specifies the product identifier.
-
-
LicenseDependsOn
-
-
Data type: string
-
Access type: Read-only
Specifies the dependency identifier for the set of SKUs used to determine license relationships for add-ons.
-
-
LicenseFamily
-
-
Data type: string
-
Access type: Read-only
Specifies the group identifier for the SKU used to determine license relationships for add-ons.
-
-
LicenseIsAddon
-
-
Data type: boolean
-
Access type: Read-only
Indicates TRUE if the product is identified as an add-on license.
-
-
LicenseStatus
-
-
Data type: uint32
-
Access type: Read-only
Specifies the license status of this product application. The following values are possible.
Value Description 0 Unlicensed 1 Licensed 2 OOBGrace 3 OOTGrace 4 NonGenuineGrace 5 Notification -
-
LicenseStatusReason
-
-
Data type: uint32
-
Access type: Read-only
Specifies the license status. Provides additional information about why a computer is in a specific licensing state.
-
-
MachineURL
-
-
Data type: string
-
Access type: Read-only
Specifies the software licensing server URL for the binding certificate.
-
-
Name
-
-
Data type: string
-
Access type: Read-only
Specifies the product name.
-
-
OfflineInstallationId
-
-
Data type: string
-
Access type: Read-only
Specifies the offline installation identifier of this product application. Used for offline activation. Returns a null value if a product key is not installed.
-
-
PartialProductKey
-
-
Data type: string
-
Access type: Read-only
Specifies the last five characters of the product key. Returns a null value if a product key is not installed.
-
-
ProcessorURL
-
-
Data type: string
-
Access type: Read-only
Software licensing server URL for the process certificate
-
-
ProductKeyID
-
-
Data type: string
-
Access type: Read-only
Specifies the product key ID. Returns a null value if a product key is not installed.
-
-
ProductKeyURL
-
-
Data type: string
-
Access type: Read-only
Specifies the software licensing server URL for the product certificate.
-
-
UseLicenseURL
-
-
Data type: string
-
Access type: Read-only
Specifies the software licensing server URL for the user license.
-
Requirements
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
End of client support |
Windows Vista |
End of server support |
Windows Server 2008 |
Namespace |
Root\CIMV2 |
MOF |
|
DLL |
|