RemoveLicensesWithIdCount method of the Win32_TSLicenseKeyPack class
Removes the specified number of Remote Desktop Services licenses from the specified key pack.
Syntax
uint32 RemoveLicensesWithIdCount(
[in] uint32 KeyPackId,
[in] uint32 LicenseCount
);
Parameters
-
KeyPackId [in]
-
The identifier of the key pack that contains the licenses to remove.
-
LicenseCount [in]
-
The number of licenses to uninstall.
Return value
If the method succeeds, it returns zero. If the method is unsuccessful, it returns a nonzero value. For a list of error codes, see Remote Desktop Services WMI Provider Error Codes.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\CIMv2 |
MOF |
|
DLL |
|