Export method of the Win32_TSGatewayServer class

Returns the Remote Desktop Gateway (RD Gateway) server configuration as an XML string.

Syntax

uint32 Export(
  [in]  uint32 ExportType,
  [out] string XmlString
);

Parameters

ExportType [in]

The content to export. Set the export type by setting the corresponding bits in the ExportType parameter. You can set multiple export types. For example, if the 0 bit is set, Remote Desktop Services connection authorization policies (RD CAPs) will be exported. If both the 0 and the 2nd bit is set, both RD CAPs and Remote Desktop Services resource authorization policies (RD RAPs) will be exported.

Export all CAPs (1)

Export all RD CAPs.

Export all Radius Servers (2)

Export a list of all Network Policy Server (NPS) servers.

Export all RAPs (4)

Export all RD RAPs.

Export all RGs (8)

Export all resource groups.

Export all LoadBalancing Servers (16)

Export a list of all load-balancing servers.

Export all Server Settings (32)

Export all RD Gateway-related server settings.

Export all Health Policies (64)

Export all health policies.

**Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2 and Windows Server 2008: **

This value is not supported before Windows Server 2016.

XmlString [out]

The XML string.

Remarks

You must be a member of the Administrators group to call this method.

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_TSGatewayServer