EnableAllowOnlySDRServers method of the Win32_TSGatewayConnectionAuthorizationPolicy class

Used to toggle the AllowOnlySDRServers property.

Syntax

uint32 EnableAllowOnlySDRServers(
  [in] boolean AllowOnlySDRServers
);

Parameters

AllowOnlySDRServers [in]

If set to True, connections will be allowed only to secure device redirection (SDR) RDS servers. If set to False, connections will be allowed to older RDS servers also

Return value

If the method succeeds, it returns zero. If the method is unsuccessful, it returns a nonzero value. For a list of error codes, see Remote Desktop Services WMI Provider Error Codes.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008 R2
Namespace
ROOT\cimv2\TerminalServices
MOF
TsGateway.mof
DLL
AagWmi.dll

See also

Win32_TSGatewayConnectionAuthorizationPolicy