Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-RASGatewayDefaultSettings

SYNOPSIS

Modifies default settings used to configure a RAS Secure Gateway.

SYNTAX

Set-RASGatewayDefaultSettings [-AllClientConnectionsLimit <uint>] [-AllConnectionsLimit <uint>]
 [-AllowAppsInNewTab <bool>] [-AllowCORS <bool>] [-AllowedDomainsForCORS <List`1>]
 [-AllowEmbed <bool>] [-AllowLaunchMethod <bool>] [-AllowWebSocketsWithMissingOrigin <bool>]
 [-AlternateNLBHost <string>] [-AlternateNLBPort <uint>] [-AutoCertificate <SwitchParameter>]
 [-AutoPreferredConnectionBroker <SwitchParameter>] [-BackendLimit <uint>]
 [-BlockAccessDeprecatedWebAPI <bool>] [-BlockAccessSessionLaunchCBAPI <bool>]
 [-BlockAccessSessionLaunchWebAPI <bool>] [-BlockAccessStandardRASSessions <bool>]
 [-BlockAccessUserPortal <bool>] [-BlockedTimeout <uint>] [-Broadcast <bool>]
 [-BrowserCacheTimeInMonths <uint>] [-CertificateId <uint>] [-CertificateObj <Certificate>]
 [-Cipher <string>] [-CipherPreference <bool>] [-CipherStrength {Low | Medium | High | Custom}]
 [-ClientDetectionTimeout <uint>] [-ClientIPPDetectionServiceURL <string>] [-ClientLimit <uint>]
 [-ClientNewAuthLimit <uint>] [-ClientTunnelingViaAPILimit <uint>]
 [-ClipboardDirection {None | ClientToServer | ServerToClient | Bidirectional}]
 [-DetectClientMode {Automatic | Manual}] [-DisableWyseCertWarn <bool>] [-DOSPro <bool>]
 [-EnableAlternateNLBHost <bool>] [-EnableAlternateNLBPort <bool>] [-EnableDeviceManagerPort <bool>]
 [-EnableGatewayPort <bool>] [-EnableHSTS <bool>] [-EnableRDP <bool>] [-EnableRDPUDP <bool>]
 [-EnableSSL <bool>] [-EnableUserPortal <bool>] [-EnableWyseSupport <bool>]
 [-FileTransferMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-ForwardGatewayServers <string>] [-ForwardHttpServers <string>] [-GatewayPort <uint>]
 [-HSTSIncludeSubdomains <bool>] [-HSTSMaxAge <uint>] [-HSTSPreload <bool>] [-HTTPLimit <uint>]
 [-LaunchMethod {ParallelsClientAndWebClient | ParallelsClient | WebClient}] [-LimitsEnabled <bool>]
 [-MACAllowExcept <string[]>] [-MACAllowOnly <string[]>]
 [-MinSSLVersion {TLSv1 | TLSv1_1 | TLSv1_2 | TLSv1_3}] [-Mode {Normal | Forwarding}]
 [-NormalModeForwarding <bool>] [-OnlyAllowAcmeHttp <bool>] [-PreferredConnectionBrokerId <uint>]
 [-PreferredConnectionBrokerObj <ConnectionBroker>] [-RDPPort <uint>]
 [-SecurityMode {AllowAllExcept | AllowOnly}] [-SiteId <uint>] [-SSLPort <uint>]
 [-UseAutoKeyboardDetect <bool>] [-UseClientIPDetectionService <bool>]
 [-UsePreWin2000LoginFormat <bool>] [-UserPortalLimit <uint>] [-UserPortalPort <uint>]
 [-UseSecureWebCookie <bool>] [-WebAPISecret <string>] [-WebCookie <string>]
 [-WebRequestsURL <string>] [-WyseLimit <uint>] [<CommonParameters>]

DESCRIPTION

Modifies default settings used to configure a RAS Secure Gateway.

For each setting, the cmdlet has a corresponding input parameter. To modify a setting, specify a matching parameter and its value.

Default settings are defined on a site level and are applied to a Gateway when it is initially added to the site.

To retrieve the current defaults settings, use the Get-RASGatewayDefaultSettings cmdlet.

EXAMPLES

Example 1

Sets the default value of the GatewayPort property for the specified site.

PARAMETERS

-SiteId

Site ID for which to modify the default Gateway settings.

-Mode

Gateway Mode. Accepted values: Normal, Forwarding.

Possible values: Normal, Forwarding

Type reference: GatewayMode

-NormalModeForwarding

Forward requests to HTTP server.

-ForwardGatewayServers

One or multiple (separated by comma) Forwarding Gateway Servers.

E.g. localhost:80, web1

-AutoPreferredConnectionBroker

Set preferred Connection Broker Automatically.

-PreferredConnectionBrokerObj

The preferred Connection Broker.

To obtain an object of type Broker representing the Preferred Connection Broker, use the Get-RASConnectionBroker cmdlet.

Type reference: ConnectionBroker

-PreferredConnectionBrokerId

The preferred Connection Broker ID.

-ForwardHttpServers

One or multiple (separated by comma) Forwarding HTTP Servers.

E.g. localhost:81, web1

-EnableGatewayPort

Enable or disable a custom RAS Secure Gateway port.

To specify a custom port, set this parameter to True and use the GatewayPort parameter to specify the port number.

-GatewayPort

A custom Gateway port number. For this port to take effect, the EnableGatewayPort parameters must be set to $True.

-OnlyAllowAcmeHttp

Whether to ignore all incoming requests except for Acme ones received on 'GatewayPort'

-EnableRDP

Enable or disable a custom RDP port.

To specify a custom port number, use the RDPPort parameter.

-RDPPort

A custom RDP port number. For this port to take effect, the EnableRDPPort parameter must be set to True.

-Broadcast

Enable or disable the 'Broadcast RAS Secure Gateway Address' option.

-EnableRDPUDP

Enable or disable the 'RDP UDP Data Tunneling' option.

-EnableDeviceManagerPort

Enable or disable the 'Device Manager Port' option.

-DOSPro

Enable or disable the 'RDP DOS Attack Filter' option.

-EnableSSL

Enable or disable SSL on the port specified in the SSLPort parameter.

-SSLPort

SSL port number. To enable the port, set the EnableSSL port parameter to True.

-MinSSLVersion

Minimum SSL version. Accepted values: TLSv1_3 (TLS v1.3 only, strong), TLSv1_2 (TLS v1.2 - TLS v1.3), TLSv1_1 (TLS v1.1 - TLS v1.3), TLSv1 (TLS v1 - TLS v1.3).

Possible values: TLSv1, TLSv1_1, TLSv1_2, TLSv1_3

Type reference: AcceptedSSLVersion

-CipherStrength

Cipher strength. Accepted values: Low, Medium, High, Custom.

Possible values: Low, Medium, High, Custom

Type reference: CipherStrength

-Cipher

Cipher string.

-CipherPreference

Enable or disable Use ciphers according to server preference.

-AutoCertificate

Set Certificate Automatically.

-CertificateObj

The Certificate.

To obtain an object of type Certificate, use the Get-Certificate cmdlet.

Type reference: Certificate

-CertificateId

The Certificate ID.

-EnableHSTS

Enable or disable HSTS.

To specify a custom HSTS Age, set this parameter to True and use the HSTSMaxAge parameter to specify the HSTS maximum age.

-HSTSMaxAge

Specifies the HSTS maximum age.

-HSTSIncludeSubdomains

Enable or disable the HSTS sub-domains.

-HSTSPreload

Enable or disable the HSTS preload.

-EnableUserPortal

Enable or disable User Portal connectivity on the Gateway.

-UserPortalPort

A custom User Portal port number.

-LaunchMethod

Launch method.

Possible values: ParallelsClientAndWebClient, ParallelsClient, WebClient

Type reference: LaunchMethod

-AllowLaunchMethod

Allow users to select a resource launch method.

-AllowAppsInNewTab

Allow users to start applications in a new browser tab.

-UsePreWin2000LoginFormat

Enable or disable the 'Use Pre Windows 2000 Login Format' option.

-AllowEmbed

Allow embedding of Web Client into other web pages.

-UseAutoKeyboardDetect

Use automatic keyboard layout detection.

-FileTransferMode

File Transfer option. Possible values are: 0 (Disabled), 1 (client to Server only), 2 {Server To Client only), 3 (Bidirectional).

Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

Type reference: FileTransferControlMode

-ClipboardDirection

State of clipboard direction.

Possible values: None, ClientToServer, ServerToClient, Bidirectional

Type reference: ClipboardDirections

-AllowCORS

Allow cross-origin resource sharing.

-AllowedDomainsForCORS

Allowed domains for cross-origin resource sharing.

-UseClientIPDetectionService

Use Client IP detection service.

-ClientIPPDetectionServiceURL

Client IP detection service URL.

-DetectClientMode

Detection mode.

Automatically on sign in

Manually on user prompt (Default)

Possible values: Automatic, Manual

Type reference: DetectClientMode

-ClientDetectionTimeout

Client detection timeout in seconds.

-BrowserCacheTimeInMonths

How long should the browser preserve the cache (in months).

-EnableAlternateNLBHost

Enable or disable Alternate NLB host name specified in the EnableAlternateNLBHost parameter.

-AlternateNLBHost

Alternate NLB host name. To enable the host name, set the EnableAlternateNLBHost port parameter to True.

-EnableAlternateNLBPort

Enable or disable Alternate NLB on the port specified in the AlternateNLBPort parameter.

-AlternateNLBPort

Alternate NLB port number. To enable the port, set the EnableAlternateNLBPort port parameter to True.

-EnableWyseSupport

Enable or disable Wyse ThinOS support.

-DisableWyseCertWarn

Enable or disable the warning if server certificate is not verified.

-SecurityMode

Security Mode. Accepted values: AllowAllExcept, AllowOnly.

Possible values: AllowAllExcept, AllowOnly

Type reference: GatewaySecurityMode

-MACAllowExcept

Specifies the Security 'MAC Allow Except' MAC addresses.

-MACAllowOnly

Specifies the Security 'MAC Allow Only' MAC addresses.

-BlockAccessStandardRASSessions

Blocks new authentication to standard RAS sessions, preventing application listing and remote session launch. Existing sessions are not affected.

-BlockAccessUserPortal

Blocks access to the User Portal user interface, including portal login and related pages such as cookie policy and download. Other APIs may still be used.

-BlockAccessSessionLaunchWebAPI

Blocks new session launch through the Web API. Existing sessions are not affected. BlockAccessSessionLaunchWebAPI enforces blocking of deprecated Web APIs.

-BlockAccessSessionLaunchCBAPI

Blocks new session launch through the Connection Broker API. Existing sessions are not affected.

-BlockAccessDeprecatedWebAPI

Blocks deprecated Web APIs to reduce security and compatibility risks. The BlockAccessDeprecatedWebAPI parameter can only be set if BlockAccessSessionLaunchWebAPI is disabled.

-LimitsEnabled

Whether the gateway limits are enabled or disabled.

-BlockedTimeout

Client: The blocked timeout in minutes.

-AllClientConnectionsLimit

Client: The maximum number of All Client Connections allowed (0 = Unlimited).

-UserPortalLimit

The maximum number of User Portal connections allowed (0 = Unlimited).

-HTTPLimit

The maximum number of HTTP connections allowed (0 = Unlimited).

-WyseLimit

The maximum number of WYSE connections allowed (0 = Unlimited).

-ClientLimit

The maximum number of Client connections allowed (0 = Unlimited).

-ClientNewAuthLimit

The maximum number of Client NewAuth connections allowed (0 = Unlimited).

-ClientTunnelingViaAPILimit

The maximum number of Client Tunneling via API connections allowed (0 = Unlimited).

-BackendLimit

The maximum number of Backend connections allowed (0 = Unlimited).

-AllConnectionsLimit

The maximum number of All Connections allowed (0 = Unlimited).

-WebAPISecret

The secret used in the JWT (JSON Web Token) for data exchanged between the caller and User portal.

-WebRequestsURL

Set a URL for Web requests.

This is the URL that will open when a user enters the IP address

of the RAS Secure Gateway server in a web browser.

For the URL to work, the gateway mode must be set to Normal.

-WebCookie

Set the Web Cookie Name used by RAS.

-UseSecureWebCookie

Enable or disable the addition of the secure attribute to the cookie to the Web Cookie.

-AllowWebSocketsWithMissingOrigin

Enable or disable the use of Web Sockets with missing origin.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

None

Last updated