# Set-RASGateway

## NAME

Set-RASGateway

## SYNOPSIS

Modifies properties of a RAS Secure Gateway.

## SYNTAX

**Set-RASGateway** \[[Id](#id-string)] _(uint)_\*\*\
\[[AllowAppsInNewTab](#allowappsinnewtab-string)_(bool)_] \[[AllowCORS](#allowcors-string) _(bool)_]\
\[-[AllowedDomainsForCORS](#AllowedDomainsForCORS)_(List\`1)_] \[[AllowEmbed](#allowembed-string)_(bool)_]\
\[[AllowLaunchMethod](#allowlaunchmethod-string)_(bool)_] \[[AlternateNLBHost](#alternatenlbhost-string)_(string)_]\
\[[AlternateNLBPort](#alternatenlbport-string) _(uint)_]\
\[[AutoCertificate](#autocertificate-string)_(SwitchParameter)_]\
\[[AutoPreferredBroker](#autopreferredbroker-string)_(SwitchParameter)_]\
\[[BindV4Addresses](#bindv4addresses-string) _(string)_]\
\[[BindV6Addresses](#bindv6addresses-string) _(string)_]\
\[[Broadcast](#broadcast-string) _(bool)_]\
\[[BrowserCacheTimeInMonths](#browsercachetimeinmonths-string)_(uint)_] \[[CertificateFile](#certificatefile-string)_(string)_] \[[CertificateId](#certificateid-string)_(uint)_] \[-[CertificateObj](#CertificateObj)_(_[_Certificate_](../types/certificate)_)_]\
\[[Cipher](#cipher-string) _(string)_]\
\[[CipherPreference](#cipherpreference-string) _(bool)_]\
\[-[CipherStrength](#CipherStrength) {Low | Medium\
\| High | Custom}]\
\[[ClientDetectionTimeout](#clientdetectiontimeout-string)_(uint)_]\
\[[ClientIPPDetectionServiceURL](#clientippdetectionserviceurl-string)_(string)_]\
\[-[ClipboardDirection](#ClipboardDirection) {None |\
ClientToServer | ServerToClient | Bidirectional}]\
\[[Description](#description-string) _(string)_]\
\[-[DetectClientMode](#DetectClientMode) {Automatic\
\| Manual}]\
\[[DisableWyseCertWarn](#disablewysecertwarn-string)_(bool)_] \[[DOSPro](#dospro-string) _(bool)_]\
\[[EnableAlternateNLBHost](#enablealternatenlbhost-string)_(bool)_]\
\[[EnableAlternateNLBPort](#enablealternatenlbport-string)_(bool)_] \[[Enabled](#enabled-string) _(bool)_]\
\[[EnableDeviceManagerPort](#enabledevicemanagerport-string)_(bool)_]\
\[[EnableGatewayPort](#enablegatewayport-string)_(bool)_] \[[EnableHSTS](#enablehsts-string)_(bool)_] \[[EnableRDP](#enablerdp-string) _(bool)_]\
\[[EnableRDPUDP](#enablerdpudp-string) _(bool)_]\
\[[EnableSSL](#enablessl-string) _(bool)_]\
\[[EnableUserPortal](#enableuserportal-string) _(bool)_]\
\[[EnableWyseSupport](#enablewysesupport-string)_(bool)_] \[-[FileTransferMode](#FileTransferMode)\
{Disabled | ClientToServer | ServerToClient | Bidirectional}]\
\[[ForwardGatewayServers](#forwardgatewayservers-string)_(string)_]\
\[[ForwardHttpServers](#forwardhttpservers-string)_(string)_] \[[GatewayPort](#gatewayport-string)_(uint)_]\
\[[HSTSIncludeSubdomains](#hstsincludesubdomains-string)_(bool)_] \[[HSTSMaxAge](#hstsmaxage-string)_(uint)_] \[[HSTSPreload](#hstspreload-string)_(bool)_]\
\[[InheritDefaultModeSettings](#inheritdefaultmodesettings-string)_(bool)_]\
\[[InheritDefaultNetworkSettings](#inheritdefaultnetworksettings-string)_(bool)_]\
\[[InheritDefaultSecuritySettings](#inheritdefaultsecuritysettings-string)_(bool)_]\
\[[InheritDefaultSslTlsSettings](#inheritdefaultssltlssettings-string)_(bool)_]\
\[[InheritDefaultUserPortalSettings](#inheritdefaultuserportalsettings-string)_(bool)_]\
\[[InheritDefaultWebSettings](#inheritdefaultwebsettings-string)_(bool)_]\
\[[InheritDefaultWyseSettings](#inheritdefaultwysesettings-string)_(bool)_] \[[IPs](#ips-string) _(string)_]\
\[-[IPVersion](#IPVersion) {Version4 | Version6 |\
BothVersions}] \[-[LaunchMethod](#LaunchMethod)\
{ParallelsClientAndWebClient | ParallelsClientAndHTML5 |\
ParallelsClient | WebClient | HTML5}]\
\[-[MACAllowExcept](#MACAllowExcept)_(string\[])_] \[-[MACAllowOnly](#MACAllowOnly)_(string\[])_] \[-[MinSSLVersion](#MinSSLVersion)\
{TLSv1 | TLSv1\_1 | TLSv1\_2 | TLSv1\_3}]\
\[-[Mode](#Mode) {Normal | Forwarding}]\
\[[NewServer](#newserver-string) _(string)_]\
\[[NormalModeForwarding](#normalmodeforwarding-string)_(bool)_]\
\[[OnlyAllowAcmeHttp](#onlyallowacmehttp-string)_(bool)_]\
\[[OptimizeConnectionIPv4](#optimizeconnectionipv4-string)_(string)_]\
\[[OptimizeConnectionIPv6](#optimizeconnectionipv6-string)_(string)_] \[[PfxFile](#pfxfile-string) _(string)_]\
\[[PfxPassword](#pfxpassword-string) _(SecureString)_]\
\[[PreferredBrokerId](#preferredbrokerid-string)_(uint)_]\
\[-[PreferredBrokerObj](#PreferredBrokerObj)_(_[_Broker_](../types/broker)_)_]\
\[[PrivateKeyFile](#privatekeyfile-string) _(string)_]\
\[[PublicAddress](#publicaddress-string) _(string)_]\
\[[RDPPort](#rdpport-string) _(uint)_]\
\[-[SecurityMode](#SecurityMode) {AllowAllExcept |\
AllowOnly}] \[[SSLPort](#sslport-string) _(uint)_]\
\[[UseClientIPDetectionService](#useclientipdetectionservice-string)_(bool)_]\
\[[UsePreWin2000LoginFormat](#useprewin2000loginformat-string)_(bool)_] \[[UserPortalPort](#userportalport-string)_(uint)_]\
\[[UseSecureWebCookie](#usesecurewebcookie-string)_(bool)_] \[[WebCookie](#webcookie-string)_(string)_] \[[WebRequestsURL](#webrequestsurl-string)_(string)_]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

**Set-RASGateway** \[-[InputObject](#inputobject)]\*\*_(_[_Gateway_](../types/gateway)_)_\
\[[AllowAppsInNewTab](#allowappsinnewtab-string)_(bool)_] \[[AllowCORS](#allowcors-string) _(bool)_]\
\[-[AllowedDomainsForCORS](#AllowedDomainsForCORS)_(List\`1)_] \[[AllowEmbed](#allowembed-string)_(bool)_]\
\[[AllowLaunchMethod](#allowlaunchmethod-string)_(bool)_] \[[AlternateNLBHost](#alternatenlbhost-string)_(string)_]\
\[[AlternateNLBPort](#alternatenlbport-string) _(uint)_]\
\[[AutoCertificate](#autocertificate-string)_(SwitchParameter)_]\
\[[AutoPreferredBroker](#autopreferredbroker-string)_(SwitchParameter)_]\
\[[BindV4Addresses](#bindv4addresses-string) _(string)_]\
\[[BindV6Addresses](#bindv6addresses-string) _(string)_]\
\[[Broadcast](#broadcast-string) _(bool)_]\
\[[BrowserCacheTimeInMonths](#browsercachetimeinmonths-string)_(uint)_] \[[CertificateFile](#certificatefile-string)_(string)_] \[[CertificateId](#certificateid-string)_(uint)_] \[-[CertificateObj](#CertificateObj)_(_[_Certificate_](../types/certificate)_)_]\
\[[Cipher](#cipher-string) _(string)_]\
\[[CipherPreference](#cipherpreference-string) _(bool)_]\
\[-[CipherStrength](#CipherStrength) {Low | Medium\
\| High | Custom}]\
\[[ClientDetectionTimeout](#clientdetectiontimeout-string)_(uint)_]\
\[[ClientIPPDetectionServiceURL](#clientippdetectionserviceurl-string)_(string)_]\
\[-[ClipboardDirection](#ClipboardDirection) {None |\
ClientToServer | ServerToClient | Bidirectional}]\
\[[Description](#description-string) _(string)_]\
\[-[DetectClientMode](#DetectClientMode) {Automatic\
\| Manual}]\
\[[DisableWyseCertWarn](#disablewysecertwarn-string)_(bool)_] \[[DOSPro](#dospro-string) _(bool)_]\
\[[EnableAlternateNLBHost](#enablealternatenlbhost-string)_(bool)_]\
\[[EnableAlternateNLBPort](#enablealternatenlbport-string)_(bool)_] \[[Enabled](#enabled-string) _(bool)_]\
\[[EnableDeviceManagerPort](#enabledevicemanagerport-string)_(bool)_]\
\[[EnableGatewayPort](#enablegatewayport-string)_(bool)_] \[[EnableHSTS](#enablehsts-string)_(bool)_] \[[EnableRDP](#enablerdp-string) _(bool)_]\
\[[EnableRDPUDP](#enablerdpudp-string) _(bool)_]\
\[[EnableSSL](#enablessl-string) _(bool)_]\
\[[EnableUserPortal](#enableuserportal-string) _(bool)_]\
\[[EnableWyseSupport](#enablewysesupport-string)_(bool)_] \[-[FileTransferMode](#FileTransferMode)\
{Disabled | ClientToServer | ServerToClient | Bidirectional}]\
\[[ForwardGatewayServers](#forwardgatewayservers-string)_(string)_]\
\[[ForwardHttpServers](#forwardhttpservers-string)_(string)_] \[[GatewayPort](#gatewayport-string)_(uint)_]\
\[[HSTSIncludeSubdomains](#hstsincludesubdomains-string)_(bool)_] \[[HSTSMaxAge](#hstsmaxage-string)_(uint)_] \[[HSTSPreload](#hstspreload-string)_(bool)_]\
\[[InheritDefaultModeSettings](#inheritdefaultmodesettings-string)_(bool)_]\
\[[InheritDefaultNetworkSettings](#inheritdefaultnetworksettings-string)_(bool)_]\
\[[InheritDefaultSecuritySettings](#inheritdefaultsecuritysettings-string)_(bool)_]\
\[[InheritDefaultSslTlsSettings](#inheritdefaultssltlssettings-string)_(bool)_]\
\[[InheritDefaultUserPortalSettings](#inheritdefaultuserportalsettings-string)_(bool)_]\
\[[InheritDefaultWebSettings](#inheritdefaultwebsettings-string)_(bool)_]\
\[[InheritDefaultWyseSettings](#inheritdefaultwysesettings-string)_(bool)_] \[[IPs](#ips-string) _(string)_]\
\[-[IPVersion](#IPVersion) {Version4 | Version6 |\
BothVersions}] \[-[LaunchMethod](#LaunchMethod)\
{ParallelsClientAndWebClient | ParallelsClientAndHTML5 |\
ParallelsClient | WebClient | HTML5}]\
\[-[MACAllowExcept](#MACAllowExcept)_(string\[])_] \[-[MACAllowOnly](#MACAllowOnly)_(string\[])_] \[-[MinSSLVersion](#MinSSLVersion)\
{TLSv1 | TLSv1\_1 | TLSv1\_2 | TLSv1\_3}]\
\[-[Mode](#Mode) {Normal | Forwarding}]\
\[[NewServer](#newserver-string) _(string)_]\
\[[NormalModeForwarding](#normalmodeforwarding-string)_(bool)_]\
\[[OnlyAllowAcmeHttp](#onlyallowacmehttp-string)_(bool)_]\
\[[OptimizeConnectionIPv4](#optimizeconnectionipv4-string)_(string)_]\
\[[OptimizeConnectionIPv6](#optimizeconnectionipv6-string)_(string)_] \[[PfxFile](#pfxfile-string) _(string)_]\
\[[PfxPassword](#pfxpassword-string) _(SecureString)_]\
\[[PreferredBrokerId](#preferredbrokerid-string)_(uint)_]\
\[-[PreferredBrokerObj](#PreferredBrokerObj)_(_[_Broker_](../types/broker)_)_]\
\[[PrivateKeyFile](#privatekeyfile-string) _(string)_]\
\[[PublicAddress](#publicaddress-string) _(string)_]\
\[[RDPPort](#rdpport-string) _(uint)_]\
\[-[SecurityMode](#SecurityMode) {AllowAllExcept |\
AllowOnly}] \[[SSLPort](#sslport-string) _(uint)_]\
\[[UseClientIPDetectionService](#useclientipdetectionservice-string)_(bool)_]\
\[[UsePreWin2000LoginFormat](#useprewin2000loginformat-string)_(bool)_] \[[UserPortalPort](#userportalport-string)_(uint)_]\
\[[UseSecureWebCookie](#usesecurewebcookie-string)_(bool)_] \[[WebCookie](#webcookie-string)_(string)_] \[[WebRequestsURL](#webrequestsurl-string)_(string)_]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

**Set-RASGateway** \[[Server](#server-string)]\*\*_(string)_ \[\[-[SiteId](#siteid-string)] _(uint)_]\
\[[AllowAppsInNewTab](#allowappsinnewtab-string)_(bool)_] \[[AllowCORS](#allowcors-string) _(bool)_]\
\[-[AllowedDomainsForCORS](#AllowedDomainsForCORS)_(List\`1)_] \[[AllowEmbed](#allowembed-string)_(bool)_]\
\[[AllowLaunchMethod](#allowlaunchmethod-string)_(bool)_] \[[AlternateNLBHost](#alternatenlbhost-string)_(string)_]\
\[[AlternateNLBPort](#alternatenlbport-string) _(uint)_]\
\[[AutoCertificate](#autocertificate-string)_(SwitchParameter)_]\
\[[AutoPreferredBroker](#autopreferredbroker-string)_(SwitchParameter)_]\
\[[BindV4Addresses](#bindv4addresses-string) _(string)_]\
\[[BindV6Addresses](#bindv6addresses-string) _(string)_]\
\[[Broadcast](#broadcast-string) _(bool)_]\
\[[BrowserCacheTimeInMonths](#browsercachetimeinmonths-string)_(uint)_] \[[CertificateFile](#certificatefile-string)_(string)_] \[[CertificateId](#certificateid-string)_(uint)_] \[-[CertificateObj](#CertificateObj)_(_[_Certificate_](../types/certificate)_)_]\
\[[Cipher](#cipher-string) _(string)_]\
\[[CipherPreference](#cipherpreference-string) _(bool)_]\
\[-[CipherStrength](#CipherStrength) {Low | Medium\
\| High | Custom}]\
\[[ClientDetectionTimeout](#clientdetectiontimeout-string)_(uint)_]\
\[[ClientIPPDetectionServiceURL](#clientippdetectionserviceurl-string)_(string)_]\
\[-[ClipboardDirection](#ClipboardDirection) {None |\
ClientToServer | ServerToClient | Bidirectional}]\
\[[Description](#description-string) _(string)_]\
\[-[DetectClientMode](#DetectClientMode) {Automatic\
\| Manual}]\
\[[DisableWyseCertWarn](#disablewysecertwarn-string)_(bool)_] \[[DOSPro](#dospro-string) _(bool)_]\
\[[EnableAlternateNLBHost](#enablealternatenlbhost-string)_(bool)_]\
\[[EnableAlternateNLBPort](#enablealternatenlbport-string)_(bool)_] \[[Enabled](#enabled-string) _(bool)_]\
\[[EnableDeviceManagerPort](#enabledevicemanagerport-string)_(bool)_]\
\[[EnableGatewayPort](#enablegatewayport-string)_(bool)_] \[[EnableHSTS](#enablehsts-string)_(bool)_] \[[EnableRDP](#enablerdp-string) _(bool)_]\
\[[EnableRDPUDP](#enablerdpudp-string) _(bool)_]\
\[[EnableSSL](#enablessl-string) _(bool)_]\
\[[EnableUserPortal](#enableuserportal-string) _(bool)_]\
\[[EnableWyseSupport](#enablewysesupport-string)_(bool)_] \[-[FileTransferMode](#FileTransferMode)\
{Disabled | ClientToServer | ServerToClient | Bidirectional}]\
\[[ForwardGatewayServers](#forwardgatewayservers-string)_(string)_]\
\[[ForwardHttpServers](#forwardhttpservers-string)_(string)_] \[[GatewayPort](#gatewayport-string)_(uint)_]\
\[[HSTSIncludeSubdomains](#hstsincludesubdomains-string)_(bool)_] \[[HSTSMaxAge](#hstsmaxage-string)_(uint)_] \[[HSTSPreload](#hstspreload-string)_(bool)_]\
\[[InheritDefaultModeSettings](#inheritdefaultmodesettings-string)_(bool)_]\
\[[InheritDefaultNetworkSettings](#inheritdefaultnetworksettings-string)_(bool)_]\
\[[InheritDefaultSecuritySettings](#inheritdefaultsecuritysettings-string)_(bool)_]\
\[[InheritDefaultSslTlsSettings](#inheritdefaultssltlssettings-string)_(bool)_]\
\[[InheritDefaultUserPortalSettings](#inheritdefaultuserportalsettings-string)_(bool)_]\
\[[InheritDefaultWebSettings](#inheritdefaultwebsettings-string)_(bool)_]\
\[[InheritDefaultWyseSettings](#inheritdefaultwysesettings-string)_(bool)_] \[[IPs](#ips-string) _(string)_]\
\[-[IPVersion](#IPVersion) {Version4 | Version6 |\
BothVersions}] \[-[LaunchMethod](#LaunchMethod)\
{ParallelsClientAndWebClient | ParallelsClientAndHTML5 |\
ParallelsClient | WebClient | HTML5}]\
\[-[MACAllowExcept](#MACAllowExcept)_(string\[])_] \[-[MACAllowOnly](#MACAllowOnly)_(string\[])_] \[-[MinSSLVersion](#MinSSLVersion)\
{TLSv1 | TLSv1\_1 | TLSv1\_2 | TLSv1\_3}]\
\[-[Mode](#Mode) {Normal | Forwarding}]\
\[[NewServer](#newserver-string) _(string)_]\
\[[NormalModeForwarding](#normalmodeforwarding-string)_(bool)_]\
\[[OnlyAllowAcmeHttp](#onlyallowacmehttp-string)_(bool)_]\
\[[OptimizeConnectionIPv4](#optimizeconnectionipv4-string)_(string)_]\
\[[OptimizeConnectionIPv6](#optimizeconnectionipv6-string)_(string)_] \[[PfxFile](#pfxfile-string) _(string)_]\
\[[PfxPassword](#pfxpassword-string) _(SecureString)_]\
\[[PreferredBrokerId](#preferredbrokerid-string)_(uint)_]\
\[-[PreferredBrokerObj](#PreferredBrokerObj)_(_[_Broker_](../types/broker)_)_]\
\[[PrivateKeyFile](#privatekeyfile-string) _(string)_]\
\[[PublicAddress](#publicaddress-string) _(string)_]\
\[[RDPPort](#rdpport-string) _(uint)_]\
\[-[SecurityMode](#SecurityMode) {AllowAllExcept |\
AllowOnly}] \[[SSLPort](#sslport-string) _(uint)_]\
\[[UseClientIPDetectionService](#useclientipdetectionservice-string)_(bool)_]\
\[[UsePreWin2000LoginFormat](#useprewin2000loginformat-string)_(bool)_] \[[UserPortalPort](#userportalport-string)_(uint)_]\
\[[UseSecureWebCookie](#usesecurewebcookie-string)_(bool)_] \[[WebCookie](#webcookie-string)_(string)_] \[[WebRequestsURL](#webrequestsurl-string)_(string)_]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

## DESCRIPTION

Modifies properties of a RAS Secure Gateway.

When executing the cmdlet, you can include only the parameters that you\
want to modify.

## PARAMETERS

## Server (string)

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.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SiteId (uint)

The site ID to which the Secure Gateway belongs.

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Id (uint)

The ID of the Secure Gateway to modify.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InputObject ([Gateway](../types/gateway))

The Secure Gateway object to be modified.

A Secure Gateway object representing a Secure Gateway is obtained using\
the Get-RASGateway cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

## Enabled (bool)

Enable or disable the specified Secure Gateway.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## NewServer (string)

The new Secure Gateway name. The name must be either a valid FQDN or a\
valid IP address.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Description (string)

A user-defined Secure Gateway description.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PublicAddress (string)

The Public Address of the Secure Gateway.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## IPVersion ([IPVersion](../types/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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## IPs (string)

One or multiple (separated by comma) IP addresses.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## BindV4Addresses (string)

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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## OptimizeConnectionIPv4 (string)

Optimize connection for the list of IPv4 (comma separated values).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## BindV6Addresses (string)

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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## OptimizeConnectionIPv6 (string)

Optimize connection for the list of IPv6 (comma separated values).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultModeSettings (bool)

Enable or disable default mode settings.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultNetworkSettings (bool)

Enable or disable default network settings.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultSslTlsSettings (bool)

Enable or disable default SSL/TLS setting.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultUserPortalSettings (bool)

Enable or disable default User Portal settings.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultWyseSettings (bool)

Enable or disable default wyse settings.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultSecuritySettings (bool)

Enable or disable default security settingsd.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultWebSettings (bool)

Enable or disable default web settings.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Mode ([Gateway](../types/gateway))

Gateway Mode. Accepted values: Normal, Forwarding.

Possible values: Normal, Forwarding

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## NormalModeForwarding (bool)

Forward requests to HTTP server.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ForwardGatewayServers (string)

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

E.g. localhost:80, web1

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AutoPreferredBroker (SwitchParameter)

Set preferred Connection Broker Automatically.

```
        Required?                    false

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PreferredBrokerObj ([Broker](../types/broker))

The preferred Connection Broker.

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PreferredBrokerId (uint)

The preferred Connection Broker ID.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ForwardHttpServers (string)

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

E.g. localhost:81, web1

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableGatewayPort (bool)

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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## GatewayPort (uint)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## OnlyAllowAcmeHttp (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableRDP (bool)

Enable or disable a custom RDP port.

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RDPPort (uint)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Broadcast (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableRDPUDP (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableDeviceManagerPort (bool)

Enable or disable the 'Device Manager Port' option.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DOSPro (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableSSL (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SSLPort (uint)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MinSSLVersion

([AcceptedSSLVersion](../types/acceptedsslversion))\
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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CipherStrength ([CipherStrength](../types/cipherstrength))

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

Possible values: Low, Medium, High, Custom

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Cipher (string)

Cipher string.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CipherPreference (bool)

Enable or disable Use ciphers according to server preference.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AutoCertificate (SwitchParameter)

Set Certificate Automatically.

```
        Required?                    false

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CertificateObj ([Certificate](../types/certificate))

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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CertificateId (uint)

The Certificate ID.

Certificate Set Priority 2. This value will be ignored if a\
CertificateObj is specified.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PfxFile (string)

Certificate file name in pfx format.

Certificate Set Priority 3. This value will be ignored if a\
CertificateObj/CertificateId is specified.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PfxPassword (SecureString)

The password of the pfx file specified in the PfxFile parameter.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CertificateFile (string)

Certificate file name.

Certificate Set Priority 4. This value will be ignored if a\
CertificateObj/CertificateId/PfxFile is specified.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PrivateKeyFile (string)

Private key file name.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableHSTS (bool)

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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## HSTSMaxAge (uint)

Specifies the HSTS maximum age.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## HSTSIncludeSubdomains (bool)

Enable or disable the HSTS sub-domains.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## HSTSPreload (bool)

Enable or disable the HSTS preload.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableUserPortal (bool)

Enable or disable User Portal connectivity on the Gateway.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UserPortalPort (uint)

A custom User Portal port number.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## LaunchMethod ([LaunchMethod](../types/launchmethod))

Launch method.

Possible values: ParallelsClientAndWebClient, ParallelsClientAndHTML5,\
ParallelsClient, WebClient, HTML5

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllowLaunchMethod (bool)

Allow users to select a resource launch method.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllowAppsInNewTab (bool)

Allow users to start applications in a new browser tab.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UsePreWin2000LoginFormat (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllowEmbed (bool)

Allow embedding of Web Client into other web pages.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileTransferMode

([FileTransferControlMode](../types/filetransfercontrolmode))\
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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ClipboardDirection

([ClipboardDirections](../types/clipboarddirections))\
State of clipboard direction.

Possible values: None, ClientToServer, ServerToClient, Bidirectional

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllowCORS (bool)

Allow cross-origin resource sharing.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllowedDomainsForCORS (List\`1)

Allowed domains for cross-origin resource sharing.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UseClientIPDetectionService (bool)

Use Client IP detection service.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ClientIPPDetectionServiceURL (string)

Client IP detection service URL.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DetectClientMode

([DetectClientMode](../types/detectclientmode))\
Detection mode.

Automatically on sign in

Manually on user prompt (Default)

Possible values: Automatic, Manual

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ClientDetectionTimeout (uint)

Client detection timeout in seconds.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## BrowserCacheTimeInMonths (uint)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableAlternateNLBHost (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AlternateNLBHost (string)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableAlternateNLBPort (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AlternateNLBPort (uint)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableWyseSupport (bool)

Enable or disable Wyse ThinOS support.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DisableWyseCertWarn (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SecurityMode ([Gateway](../types/gateway))

Security Mode. Accepted values: AllowAllExcept, AllowOnly.

Possible values: AllowAllExcept, AllowOnly

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MACAllowExcept (string\[])

Specifies the Security 'MAC Allow Except' MAC addresses.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MACAllowOnly (string\[])

Specifies the Security 'MAC Allow Only' MAC addresses.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WebRequestsURL (string)

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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WebCookie (string)

Set the Web Cookie Name used by RAS.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UseSecureWebCookie (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

(CommonParameters)

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation. 
```

## INPUTS

[Gateway](../types/gateway)

## OUTPUTS

-none-

## EXAMPLES

\*\*---------- EXAMPLE 1 ----------

Set-RASGateway "server.company.dom" -Enable $False

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 ----------

Set-RASGateway -Id "1" -Enable $True

Enables the RAS Secure Gateway specified by ID.\
\*\*---------- EXAMPLE 3 ----------

Set-RASGateway $Gateway -Enable $False

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 ----------

Get-RASGateway -Id 1 | Set-RASGateway -Enable $False

Disables the RAS Secure Gateway which is identified by an object\
obtained from the pipeline output.\
\*\*---------- EXAMPLE 5 ----------

Get-RASGateway -Id 1 | Set-RASGateway -Description "My new Gateway\
description"

Modifies the description of the RAS Secure Gateway obtained from the\
pipeline output.

## RELATED LINKS

* [New-RASGateway](new-rasgateway)
* [Get-RASGateway](get-rasgateway)
* [Remove-RASGateway](remove-rasgateway)
