Update-DSGateway
Synopsis
Update a gateway
Syntax
GetByID
Update-DSGateway -GatewayID <guid> [-Name <string>] [-Description <string>] [-IsDefault <bool>]
[-DevolutionsGatewayUrl <string>] [-TCPListeningPort <int>] [-TokenDuration <int>]
[-HealthCheckInterval <int>] [-ForceIpAddressForRdpConnections <bool>]
[-VaultRoleOverride <GatewayVaultRoleOverride>] [-CustomVaultAccess <guid[]>] [-AsLegacyResponse]
[<CommonParameters>]Description
Update a gateway. Use the parameters to modify the gateway. The Devolutions Gateway module is required.
Examples
PS C:\> $response = Get-DSGateway -Name "Old default gateway" -AsLegacyResponse;
$gateway = $response.Data[0];
Update-DSGateway -Name "Standard Gateway" -Description "Not the default anymore" -IsDefault $falseUpdate the gateway named "Old default gateway" by removing its default status. A new description will indicate the change.
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.
-CustomVaultAccess
List of vault access roles.
-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.
-GatewayID
ID of the gateway to update.
-HealthCheckInterval
Health check interval in 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.
-VaultRoleOverride
Which vaults the gateway grants access to (if custom, specify with CustomVaultAccess).
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 Update-DSGateway -detailed". For technical information, type "Get-Help Update-DSGateway -full".
Last updated
Was this helpful?