Win32_TSDiscoveredLicenseServer class

Provides details about the discovered Remote Desktop license server.

Syntax

[abstract, AMENDMENT]
class Win32_TSDiscoveredLicenseServer
{
  string LicenseServer;
  uint32 HowDiscovered;
  uint32 IsLSAvailable;
  uint32 IsAdminOnLS;
  uint32 IssuingCALs;
};

Members

The Win32_TSDiscoveredLicenseServer class has these types of members:

Properties

The Win32_TSDiscoveredLicenseServer class has these properties.

HowDiscovered

Data type: uint32

Access type: Read-only

Qualifiers: DEPRECATED

This property is no longer supported.

Windows Server 2008: The Remote Desktop license server discovery method.

GroupPolicyConfigured (0)

The license server was discovered by using group policy.

RegistryConfigured (1)

The license server was discovered by using a registry setting.

WorkgroupDiscovery (2)

The license server was discovered by using the workgroup discovery scope.

DomainDiscovery (3)

The license server was discovered by using the domain discovery scope.

EnterpriseDiscovery (4)

The license server was discovered by using the forest discovery scope.

IsAdminOnLS

Data type: uint32

Access type: Read-only

Indicates whether the account that is being used to run the script or .exe file that is using the Win32_TSDiscoveredLicenseServer class has administrator access to the license server.

No (0)

The account that is being used does not have administrator access to the license server.

Yes (1)

The account that is being used has administrator access to the license server.

Dont know (2)

It cannot be determined whether the account that is being used has administrator access to the license server.

IsLSAvailable

Data type: uint32

Access type: Read-only

Indicates whether the license server is available (whether a remote procedure call [RPC] connection can be made to the server).

Not Available (0)

The license server is not available.

Available (1)

The license server is available.

IssuingCALs

Data type: uint32

Access type: Read-only

Indicates whether the license server is allowed to issue Remote Desktop Services client access licenses (RDS CALs) to the RD Session Host server.

Not Allowed (0)

The license server is not allowed to issue RDS CALs to the RD Session Host server.

Allowed (1)

The license server is allowed to issue RDS CALs to the RD Session Host server.

Dont know (2)

It cannot be determined whether the license server is allowed to issue RDS CALs to the RD Session Host server.

LicenseServer

Data type: string

Access type: Read-only

Qualifiers: key

Name of the discovered Remote Desktop license server.

Remarks

To connect to the \root\CIMV2\TerminalServices namespace, the authentication level must include packet privacy. For C/C++ calls, this is an authentication level of RPC_C_AUTHN_LEVEL_PKT_PRIVACY. For Visual Basic and scripting calls, this is an authentication level of WbemAuthenticationLevelPktPrivacy or "pktPrivacy", with a value of 6. The following Visual Basic Scripting Edition (VBScript) example shows how to connect to a remote computer with packet privacy.

strComputer = "RemoteServer1" 
Set objServices = GetObject( _
    "winmgmts:{authenticationLevel=pktPrivacy}!Root/CIMv2/TerminalServices")

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Microsoft Windows Software Development Kit (SDK). They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Namespace
Root\CIMv2\TerminalServices
MOF
TSCfgWmi.mof
DLL
TSCfgWmi.dll