Set-RASGateway
SYNOPSIS
Modifies properties of a RAS Secure Gateway.
SYNTAX
Set-RASGateway [-Id] <uint> [-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>]
[-BindV4Addresses <string>] [-BindV6Addresses <string>] [-BlockAccessDeprecatedWebAPI <bool>]
[-BlockAccessSessionLaunchCBAPI <bool>] [-BlockAccessSessionLaunchWebAPI <bool>]
[-BlockAccessStandardRASSessions <bool>] [-BlockAccessUserPortal <bool>] [-BlockedTimeout <uint>]
[-Broadcast <bool>] [-BrowserCacheTimeInMonths <uint>] [-CertificateFile <string>]
[-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}]
[-Description <string>] [-DetectClientMode {Automatic | Manual}] [-DisableWyseCertWarn <bool>]
[-DOSPro <bool>] [-EnableAlternateNLBHost <bool>] [-EnableAlternateNLBPort <bool>]
[-Enabled <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>]
[-InheritDefaultModeSettings <bool>] [-InheritDefaultNetworkSettings <bool>]
[-InheritDefaultSecuritySettings <bool>] [-InheritDefaultSslTlsSettings <bool>]
[-InheritDefaultUserPortalSettings <bool>] [-InheritDefaultWebSettings <bool>]
[-InheritDefaultWyseSettings <bool>] [-IPs <string>]
[-IPVersion {Version4 | Version6 | BothVersions}]
[-LaunchMethod {ParallelsClientAndWebClient | ParallelsClient | WebClient}] [-LimitsEnabled <bool>]
[-MACAllowExcept <string[]>] [-MACAllowOnly <string[]>]
[-MinSSLVersion {TLSv1 | TLSv1_1 | TLSv1_2 | TLSv1_3}] [-Mode {Normal | Forwarding}]
[-NewServer <string>] [-NormalModeForwarding <bool>] [-OnlyAllowAcmeHttp <bool>]
[-OptimizeConnectionIPv4 <string>] [-OptimizeConnectionIPv6 <string>] [-PfxFile <string>]
[-PfxPassword <SecureString>] [-PreferredConnectionBrokerId <uint>]
[-PreferredConnectionBrokerObj <ConnectionBroker>] [-PrivateKeyFile <string>]
[-PublicAddress <string>] [-RDPPort <uint>] [-SecurityMode {AllowAllExcept | AllowOnly}]
[-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 properties of a RAS Secure Gateway.
When executing the cmdlet, you can include only the parameters that you want to modify.
EXAMPLES
Example 1
Disables the specified RAS Secure Gateway in the Licensing Server site.
To disable a RAS Secure Gateway in a specific site, specify the -SiteId parameter.
All parameters except -Server are optional and only passed if they need to be updated.
Example 2
Enables the RAS Secure Gateway specified by ID.
Example 3
Disables a RAS Secure Gateway specified by Gateway object ($Gateway variable).
A Gateway object representing a RAS Secure Gateway is obtained using the Get-RASGateway cmdlet.
Example 4
Disables the RAS Secure Gateway which is identified by an object obtained from the pipeline output.
Example 5
Modifies the description of the RAS Secure Gateway obtained from the pipeline output.
PARAMETERS
-Server
The name of the RAS Secure Gateway to modify.
The name can be either FQDN or IP address, but you have to enter the actual name this server has in the RAS farm.
-SiteId
The site ID to which the Secure Gateway belongs.
-Id
The ID of the Secure Gateway to modify.
-InputObject
The Secure Gateway object to be modified.
A Secure Gateway object representing a Secure Gateway is obtained using the Get-RASGateway cmdlet.
Type reference: Gateway
-Enabled
Enable or disable the specified Secure Gateway.
-NewServer
The new Secure Gateway name. The name must be either a valid FQDN or a valid IP address.
-Description
A user-defined Secure Gateway description.
-PublicAddress
The Public Address of the Secure Gateway.
-IPVersion
The IP version for the Secure Gateway to use. Accepted values: Version4 (IPv4), Version6 (IPv6), BothVersions (both IPv4 and IPv6).
Possible values: Version4, Version6, BothVersions
Type reference: IPVersion
-IPs
One or multiple (separated by comma) IP addresses.
-BindV4Addresses
IPv4 address to bind to.
If '0.0.0.0' is passed, will bind to all available addresses.
When using a specific address, it has to be available in the IPv4 address list.
-OptimizeConnectionIPv4
Optimize connection for the list of IPv4 (comma separated values).
-BindV6Addresses
IPv6 address to bind to.
If '::' is passed, will bind to all available addresses.
When using a specific address, it has to be available in the IPv6 address list.
-OptimizeConnectionIPv6
Optimize connection for the list of IPv6 (comma separated values).
-InheritDefaultModeSettings
Enable or disable default mode settings.
-InheritDefaultNetworkSettings
Enable or disable default network settings.
-InheritDefaultSslTlsSettings
Enable or disable default SSL/TLS setting.
-InheritDefaultUserPortalSettings
Enable or disable default User Portal settings.
-InheritDefaultWyseSettings
Enable or disable default wyse settings.
-InheritDefaultSecuritySettings
Enable or disable default security settingsd.
-InheritDefaultWebSettings
Enable or disable default web settings.
-Mode
Gateway Mode. Accepted values: Normal, Forwarding.
Possible values: Normal, Forwarding
Type reference: Gateway
-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.
Certificate Set Priority 1. This value will be used if specified.
Type reference: Certificate
-CertificateId
The Certificate ID.
Certificate Set Priority 2. This value will be ignored if a CertificateObj is specified.
-PfxFile
Certificate file name in pfx format.
Certificate Set Priority 3. This value will be ignored if a CertificateObj/CertificateId is specified.
-PfxPassword
The password of the pfx file specified in the PfxFile parameter.
-CertificateFile
Certificate file name.
Certificate Set Priority 4. This value will be ignored if a CertificateObj/CertificateId/PfxFile is specified.
-PrivateKeyFile
Private key file name.
-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: Gateway
-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
Gateway
OUTPUTS
None
RELATED LINKS
Last updated