Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
-
LS_CONNECTABLE_UNKNOWN (0)
-
The connectivity status cannot be determined.
-
LS_CONNECTABLE_VALID_WS08R2 (1)
-
Remote Desktop Services can connect to the Windows Server 2008 R2 license server.
-
LS_CONNECTABLE_VALID_WS08 (2)
-
Remote Desktop Services can connect to the Windows Server 2008 license server.
-
LS_CONNECTABLE_BETA_RTM_MISMATCH (3)
-
Remote Desktop Services can connect to the license server, but one of the servers is running a beta version of the operating system.
-
LS_CONNECTABLE_LOWER_VERSION (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.
-
LS_CONNECTABLE_NOT_IN_TSCGROUP (5)
-
Security group policy is enabled in license server, but Remote Desktop Services is not a part of the group policy.
-
LS_NOT_CONNECTABLE (6)
-
Remote Desktop Services cannot connect to the license server.
-
LS_CONNECTABLE_UNKNOWN_VALIDITY (7)
-
The license server can be connected to, but the validity of the connection cannot be determined.
-
LS_CONNECTABLE_BUT_ACCESS_DENIED (8)
-
Remote Desktop Services can connect to the license server, but the user account does not have administrator privileges on the license server.
-
LS_CONNECTABLE_VALID_WS08R2_VDI (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 before Windows Server 2012.
-
LS_CONNECTABLE_FEATURE_NOT_SUPPORTED (10)
-
The feature is not supported.
Windows Server 2008 R2 and Windows Server 2008 R2 with SP1: This value is not supported before Windows Server 2012.
-
LS_CONNECTABLE_VALID_LS (11)
-
The license server is valid.
Windows Server 2008 R2 and Windows Server 2008 R2 with SP1: This value is not supported before Windows Server 2012.
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
Requirement | Value |
---|---|
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 R2 |
Namespace |
Root\CIMv2\TerminalServices |
MOF |
|
DLL |
|