CheckStatus method of the Win32_TSGatewayConnection class

Checks the status of a Remote Desktop Gateway (RD Gateway) server connection to another computer, and determines whether the target computer is configured for load balancing.

Syntax

uint32 CheckStatus(
  [in] string ServerName,
  [in] string EndPointName
);

Parameters

ServerName [in]

The name of the source RD Gateway server from which the connection is checked.

EndPointName [in]

The name of the target server (the endpoint) to which access is checked from the source server.

Return value

This method returns the following possible return values.

0

The connection status is OK. The endpoint is reachable and is configured for load balancing.

1

The connection status is unknown. Most likely, an exception occurred.

0x80075c34

The endpoint is either not reachable, or it is not configured for load balancing.

0x80075c32

A status error occurred. The endpoint is reachable, but the RPC/HTTP Load Balancing Service (RPCHTTPLBS) service is not started on the target computer.

Remarks

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
TSGateway.mof
DLL
AagWmi.dll

See also

Win32_TSGatewayConnection