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

New-DSGateway

Synopsis

Create a gateway

Syntax

__AllParameterSets

New-DSGateway -Name <string> -DevolutionsGatewayUrl <string> -TCPListeningPort <int>
 [-Description <string>] [-IsDefault] [-TokenDuration <int>] [-HealthCheckInterval <int>]
 [-ForceIpAddressForRdpConnections] [-AsLegacyResponse] [<CommonParameters>]

Description

Create a gateway. Use the parameters to create the gateway. The Devolutions Gateway module is required.

Examples

Example 1

PS C:\> New-DSGateway -Name "New Gateway" -DevolutionsGatewayUrl "http://localhost" -TCPListeningPort 8181.

Create a gateway with minimal information.

Example 2

Create the new default gateway.

Parameters

-AsLegacyResponse

In versions prior to 2024.2, many DS cmdlets returned a ServerResponse object. Enabling this backward compatibility switch allows scripts developed for earlier versions to function correctly.

-Description

Description of the gateway

-DevolutionsGatewayUrl

URL to reach the Devolutions Gateway. Must be a valid URI and unique to this gateway.

-ForceIpAddressForRdpConnections

Force using IP address for RDP connections.

-HealthCheckInterval

Health check interval in minutes. By default, it is set to 60 minutes.

-IsDefault

Set as the default gateway

-Name

Gateway's name. The value will be trimmed.

-TCPListeningPort

Port used for RDP sessions, and eventually the SSH sessions.

-TokenDuration

Generated token duration in minutes. Must be between 1 and 120 minutes. By default, it is set to 5 minutes.

CommonParameters

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

Notes

For more information, type "Get-Help New-DSGateway -detailed". For technical information, type "Get-Help New-DSGateway -full".

Last updated

Was this helpful?