Export (0) Print
Expand All

Win32_TSDiscoveredLicenseServer class

Provides details about the discovered Remote Desktop license server.

Syntax

[abstract]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.

ValueMeaning
0

The license server was discovered by using group policy.

1

The license server was discovered by using a registry setting.

2

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

3

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

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.

ValueMeaning
0

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

1

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

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

ValueMeaning
0

The license server is not 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.

ValueMeaning
0

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

1

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

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Namespace

\root\CIMV2\TerminalServices

MOF

Tscfgwmi.mof

DLL

Tscfgwmi.dll

 

 

Show:
© 2014 Microsoft