Skip to content

Latest commit

 

History

History
162 lines (97 loc) · 3.32 KB

win32-tslicensekeypack-reinstallopenpurchaselicensekeypack.md

File metadata and controls

162 lines (97 loc) · 3.32 KB
title description ms.assetid ms.tgt_platform keywords topic_type api_name api_location api_type ms.topic ms.date
ReinstallOpenPurchaseLicenseKeyPack method of the Win32_TSLicenseKeyPack class
Reinstalls an Open License Remote Desktop Services license key pack.
3E70711E-284A-466E-A733-1219F5E0B741
multiple
ReinstallOpenPurchaseLicenseKeyPack method Remote Desktop Services
ReinstallOpenPurchaseLicenseKeyPack method Remote Desktop Services , Win32_TSLicenseKeyPack class
Win32_TSLicenseKeyPack class Remote Desktop Services , ReinstallOpenPurchaseLicenseKeyPack method
apiref
Win32_TSLicenseKeyPack.ReinstallOpenPurchaseLicenseKeyPack
TlsWmiProv.dll
COM
reference
05/31/2018

ReinstallOpenPurchaseLicenseKeyPack method of the Win32_TSLicenseKeyPack class

Reinstalls an Open License Remote Desktop Services license key pack.

Syntax

uint32 ReinstallOpenPurchaseLicenseKeyPack(
  [in]  string sLicenseNumber,
  [in]  string sAuthorizationNumber,
  [in]  uint32 ProductVersion,
  [in]  uint32 ProductType,
  [in]  uint32 LicenseCount,
  [out] uint32 KeyPackId
);

Parameters

sLicenseNumber [in]

8-character numeric string that is provided with the license key pack. The sLicenseNumber parameter cannot contain hyphens.

sAuthorizationNumber [in]

15-character alphanumeric string that is provided with the license key. The sAuthorizationNumber parameter cannot contain hyphens.

ProductVersion [in]

Product version.

0

Not supported.

1

Not supported.

2

Windows Server 2008

ProductType [in]

Product type.

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 install.

KeyPackId [out]

Receives the key pack identifier.

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