Import method of the Win32_TSGatewayServer class
Imports a given configuration to the Remote Desktop Gateway (RD Gateway) server.
Syntax
uint32 Import(
[in] uint32 ImportType,
[in] string XmlString,
[in] uint32 MergeOrReplace,
[out] string LogString
);
Parameters
-
ImportType [in]
-
The content to import. Set the import type by setting the corresponding bits in the ImportType parameter. You can set multiple import types. For example, if the 0 bit is set, Remote Desktop Services connection authorization policies (RD CAPs) will be imported. If both the 0 and the 2nd bit is set, both RD CAPs and Remote Desktop Services resource authorization policies (RD RAPs) will be imported.
-
Import all CAPs (1)
-
Import all RD CAPs.
-
Import all Radius Servers (2)
-
Import a list of all Network Policy Server (NPS) servers.
-
Import all RAPs (4)
-
Import all RD RAPs.
-
Import all RGs (8)
-
Import all resource groups.
-
Import all LoadBalancing Servers (16)
-
Import a list of all load-balancing servers.
-
Import all Server Settings (32)
-
Import all RD Gateway-related server settings.
-
Import all Health Policies (64)
-
Import 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 [in]
The configuration as an XML string.
MergeOrReplace [in]
Indicates whether to merge or replace data when a conflict occurs.
Note
Merge is not yet implemented. Therefore, this parameter value is ignored.
LogString [out]
The log information that is generated during the import operation.
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 |
|
DLL |
|