# Set-RASGatewayDefaultSettings

### NAME

Set-RASGatewayDefaultSettings\ <br>

### SYNOPSIS

Modifies default settings used to configure a RAS Secure Gateway.\ <br>

### SYNTAX

Set-RASGatewayDefaultSettings \[-[AllowAppsInNewTab](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AllowAppsInNewTab) *\<bool>*] \[-[AllowClipboard](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AllowClipboard) *\<bool>*] \[-[AllowCORS](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AllowCORS) *\<bool>*] \[-[AllowedDomainsForCORS](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AllowedDomainsForCORS) *\<List\`1>*] \[-[AllowEmbed](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AllowEmbed) *\<bool>*] \[-[AllowFileTransfer](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AllowFileTransfer) *\<bool>*] \[-[AllowLaunchMethod](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AllowLaunchMethod) *\<bool>*] \[-[AlternateNLBHost](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AlternateNLBHost) *\<string>*] \[-[AlternateNLBPort](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AlternateNLBPort) *\<uint>*] \[-[AutoCertificate](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AutoCertificate) *\<SwitchParameter>*] \[-[AutoPreferredBroker](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#AutoPreferredBroker) *\<SwitchParameter>*] \[-[Broadcast](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#Broadcast) *\<bool>*] \[-[BrowserCacheTimeInMonths](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#BrowserCacheTimeInMonths) *\<uint>*] \[-[CertificateId](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#CertificateId) *\<uint>*] \[-[CertificateObj](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#CertificateObj) *<*[*Certificate*](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/Certificate.html)*>*] \[-[Cipher](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#Cipher) *\<string>*] \[-[CipherPreference](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#CipherPreference) *\<bool>*] \[-[CipherStrength](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#CipherStrength) {Low | Medium | High | Custom}] \[-[ClientDetectionTimeout](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#ClientDetectionTimeout) *\<uint>*] \[-[ClientIPPDetectionServiceURL](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#ClientIPPDetectionServiceURL) *\<string>*] \[-[ClipboardDirection](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#ClipboardDirection) {None | ClientToServer | ServerToClient | Bidirectional}] \[-[DetectClientMode](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#DetectClientMode) {Automatic | Manual}] \[-[DisableWyseCertWarn](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#DisableWyseCertWarn) *\<bool>*] \[-[DOSPro](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#DOSPro) *\<bool>*] \[-[EnableAlternateNLBHost](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#EnableAlternateNLBHost) *\<bool>*] \[-[EnableAlternateNLBPort](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#EnableAlternateNLBPort) *\<bool>*] \[-[EnableDeviceManagerPort](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#EnableDeviceManagerPort) *\<bool>*] \[-[EnableGatewayPort](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#EnableGatewayPort) *\<bool>*] \[-[EnableHSTS](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#EnableHSTS) *\<bool>*] \[-[EnableRDP](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#EnableRDP) *\<bool>*] \[-[EnableRDPUDP](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#EnableRDPUDP) *\<bool>*] \[-[EnableSSL](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#EnableSSL) *\<bool>*] \[-[EnableUserPortal](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#EnableUserPortal) *\<bool>*] \[-[EnableWyseSupport](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#EnableWyseSupport) *\<bool>*] \[-[FileTransferMode](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[ForwardGatewayServers](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#ForwardGatewayServers) *\<string>*] \[-[ForwardHttpServers](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#ForwardHttpServers) *\<string>*] \[-[GatewayPort](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#GatewayPort) *\<uint>*] \[-[HSTSIncludeSubdomains](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#HSTSIncludeSubdomains) *\<bool>*] \[-[HSTSMaxAge](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#HSTSMaxAge) *\<uint>*] \[-[HSTSPreload](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#HSTSPreload) *\<bool>*] \[-[LaunchMethod](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#LaunchMethod) {ParallelsClientAndWebClient | ParallelsClientAndHTML5 | ParallelsClient | WebClient | HTML5}] \[-[MACAllowExcept](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#MACAllowExcept) *\<string\[]>*] \[-[MACAllowOnly](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#MACAllowOnly) *\<string\[]>*] \[-[MinSSLVersion](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#MinSSLVersion) {TLSv1 | TLSv1\_1 | TLSv1\_2 | TLSv1\_3}] \[-[Mode](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#Mode) {Normal | Forwarding}] \[-[NormalModeForwarding](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#NormalModeForwarding) *\<bool>*] \[-[OnlyAllowAcmeHttp](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#OnlyAllowAcmeHttp) *\<bool>*] \[-[PreferredBrokerId](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#PreferredBrokerId) *\<uint>*] \[-[PreferredBrokerObj](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#PreferredBrokerObj) *<*[*Broker*](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/Broker.html)*>*] \[-[RDPPort](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#RDPPort) *\<uint>*] \[-[SecurityMode](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#SecurityMode) {AllowAllExcept | AllowOnly}] \[-[SiteId](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#SiteId) *\<uint>*] \[-[SSLPort](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#SSLPort) *\<uint>*] \[-[UseClientIPDetectionService](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#UseClientIPDetectionService) *\<bool>*] \[-[UsePreWin2000LoginFormat](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#UsePreWin2000LoginFormat) *\<bool>*] \[-[UserPortalPort](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#UserPortalPort) *\<uint>*] \[-[UseSecureWebCookie](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#UseSecureWebCookie) *\<bool>*] \[-[WebCookie](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#WebCookie) *\<string>*] \[-[WebRequestsURL](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#WebRequestsURL) *\<string>*] \[*<*[*CommonParameters*](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/cmdlets/Set-RASGatewayDefaultSettings.html#CommonParameters)*>*]\ <br>

### 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.\ <br>

### PARAMETERS

\
-**SiteId \<uint>**\
Site ID for which to modify the default Gateway settings.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Mode <**[**GatewayMode**](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/GatewayMode.html)**>**\
Gateway Mode. Accepted values: Normal, Forwarding.\
\
Possible values: Normal, Forwarding\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**NormalModeForwarding \<bool>**\
Forward requests to HTTP server.\ <br>

```
        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\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AutoPreferredBroker \<SwitchParameter>**\
Set preferred Broker Automatically.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                False
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PreferredBrokerObj <**[**Broker**](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/Broker.html)**>**\
The preferred Connection Broker.\
\
To obtain an object of type Broker representing the Preferred Connection Broker, use the Get-RASBroker cmdlet.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PreferredBrokerId \<uint>**\
The preferred Connection Broker ID.\ <br>

```
        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\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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'\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**EnableDeviceManagerPort \<bool>**\
Enable or disable the 'Device Manager Port' option.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**MinSSLVersion <**[**AcceptedSSLVersion**](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/AcceptedSSLVersion.html)**>**\
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\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**CipherStrength <**[**CipherStrength**](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/CipherStrength.html)**>**\
Cipher strength. Accepted values: Low, Medium, High, Custom.\
\
Possible values: Low, Medium, High, Custom\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Cipher \<string>**\
Cipher string.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AutoCertificate \<SwitchParameter>**\
Set Certificate Automatically.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                False
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**CertificateObj <**[**Certificate**](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/Certificate.html)**>**\
The Certificate.\
\
To obtain an object of type Certificate, use the Get-Certificate cmdlet.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**CertificateId \<uint>**\
The Certificate ID.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**HSTSMaxAge \<uint>**\
Specifies the HSTS maximum age.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**HSTSIncludeSubdomains \<bool>**\
Enable or disable the HSTS sub-domains.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**HSTSPreload \<bool>**\
Enable or disable the HSTS preload.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**UserPortalPort \<uint>**\
A custom User Portal port number.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**LaunchMethod <**[**LaunchMethod**](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/LaunchMethod.html)**>**\
Launch method.\
\
Possible values: ParallelsClientAndWebClient, ParallelsClientAndHTML5, ParallelsClient, WebClient, HTML5\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowLaunchMethod \<bool>**\
Allow users to select a resource launch method.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowFileTransfer \<bool>**\
Deprecated: use FileTransferMode instead.\
\
Enable or disable the 'Allow file transfer' option.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**FileTransferMode <**[**FileTransferControlMode**](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/FileTransferControlMode.html)**>**\
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\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowClipboard \<bool>**\
Enable or disable the 'Allow Clipboard' option.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ClipboardDirection <**[**ClipboardDirections**](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/ClipboardDirections.html)**>**\
State of clipboard direction.\
\
Possible values: None, ClientToServer, ServerToClient, Bidirectional\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowCORS \<bool>**\
Allow cross-origin resource sharing.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowedDomainsForCORS \<List\`1>**\
Allowed domains for cross-origin resource sharing.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**UseClientIPDetectionService \<bool>**\
Use Client IP detection service.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ClientIPPDetectionServiceURL \<string>**\
Client IP detection service URL.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DetectClientMode <**[**DetectClientMode**](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/DetectClientMode.html)**>**\
Detection mode.\
\
Automatically on sign in\
\
Manually on user prompt (Default)\
\
Possible values: Automatic, Manual\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ClientDetectionTimeout \<uint>**\
Client detection timeout in seconds.\ <br>

```
        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).\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**EnableWyseSupport \<bool>**\
Enable or disable Wyse ThinOS support.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SecurityMode <**[**GatewaySecurityMode**](file:///Users/anastasiasharapova/Downloads/Parallels-RAS-v19-4-PowerShell-Guide%203/RASAdmin/types/GatewaySecurityMode.html)**>**\
Security Mode. Accepted values: AllowAllExcept, AllowOnly.\
\
Possible values: AllowAllExcept, AllowOnly\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**MACAllowExcept \<string\[]>**\
Specifies the Security 'MAC Allow Except' MAC addresses.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**MACAllowOnly \<string\[]>**\
Specifies the Security 'MAC Allow Only' MAC addresses.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**WebCookie \<string>**\
Set the Web Cookie Name used by RAS.\ <br>

```
        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.\ <br>

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

<br>

### INPUTS

-none-

### OUTPUTS

-none-

### EXAMPLES

\
\&#xNAN;**---------- EXAMPLE 1 ----------**\
\
Set-RASGatewayDefaultSettings -SiteId 2 -GatewayPort 90\
\
Sets the default value of the GatewayPort property for the specified site.\ <br>

###
