UninstallLicenseKeyPack method of the Win32_TSLicenseKeyPack class

Uninstalls a Remote Desktop Services license key pack.

Syntax

uint32 UninstallLicenseKeyPack(
  [in] unit32 ProductVersion,
  [in] unit32 ProductType,
  [in] uint32 LicenseCount
);

Parameters

ProductVersion [in]

Product version identifier for the Remote Desktop Services license key pack.

0

Not supported.

1

Not supported.

2

Windows Server 2008

ProductType [in]

Product type of the Remote Desktop Services license key pack.

0

The Remote Desktop Services license key pack product type is per device. Therefore, each device that connects to the RD Session Host server must have a license.

1

The Remote Desktop Services license key pack product type is per user. Therefore, each user who connects to the RD Session Host server must have a license.

2

This product type is not valid.

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
TlsWmiProv.mof
DLL
TlsWmiProv.dll

See also

Win32_TSLicenseKeyPack