UninstallLicenseKeyPackWithId method of the Win32_TSLicenseKeyPack class

Uninstalls the Remote Desktop Services license key pack with the specified key pack identifier.

Syntax

uint32 UninstallLicenseKeyPackWithId(
  [in] uint32 KeyPackId
);

Parameters

KeyPackId [in]

The identifier of the key pack 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