GetTStoLSConnectivityStatus method of the Win32_TerminalServiceSetting class

Determines the connectivity status between Remote Desktop Services and a license server.

Syntax


uint32 GetTStoLSConnectivityStatus(
  [in]   string ServerName,
  [out]  uint32 TStoLSConnectivityStatus
);

Parameters

ServerName [in]

The name of the license server to check the connectivity status of.

TStoLSConnectivityStatus [out]

A value that indicates the connectivity status of the license server. This can be one of the following values.

ValueMeaning
0

The connectivity status cannot be determined.

1

Remote Desktop Services can connect to the Windows Server 2008 R2 license server.

2

Remote Desktop Services can connect to the Windows Server 2008 license server.

3

Remote Desktop Services can connect to the license server, but one of the servers is running a beta version of the operating system.

4

Remote Desktop Services can connect to the license server, but there is an incompatibility between the license server and the Remote Desktop Services host server.

5

Security group policy is enabled in license server, but Remote Desktop Services is not a part of the group policy.

6

Remote Desktop Services cannot connect to the license server.

7

The license server can be connected to, but the validity of the connection cannot be determined.

8

Remote Desktop Services can connect to the license server, but the user account does not have administrator privileges on the license server.

9

Remote Desktop Services can connect to the Windows Server 2008 R2 Virtual Desktop Infrastructure (VDI) server.

Windows Server 2008 R2:  This value is not supported.

10

The feature is not supported.

Windows Server 2008 R2 and Windows Server 2008 R2 with SP1:  This value is not supported.

11

The license server is valid.

Windows Server 2008 R2 and Windows Server 2008 R2 with SP1:  This value is not supported.

 

Return value

Returns 0 on success, otherwise returns a WMI error code. Refer to Remote Desktop Services WMI Provider Error Codes for a list of these values.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

Namespace

\root\CIMV2\TerminalServices

MOF

Tscfgwmi.mof

DLL

Tscfgwmi.dll

See also

Win32_TerminalServiceSetting

 

 

Show:
© 2014 Microsoft