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

New-DSGatewaySecurity

Synopsis

Create a new GatewaySecurity object

Syntax

__AllParameterSets

New-DSGatewaySecurity [-GatewayPermissionOverride <SecurityRoleOverride>]
 [-CustomGatewayPermissions <guid[]>] [-VaultRoleOverride <GatewayVaultRoleOverride>]
 [-CustomVaultAccess <guid[]>] [-RDPTokenReuseWindow <int>] [-DisallowDynamicConnections]
 [-DisallowPrivateVaults] [-DisallowRDPReconnection] [-DisableRdpProxyCredentialInjection]
 [<CommonParameters>]

Description

Create a new GatewaySecurity object that can be used to configure security settings when creating or updating gateways. These settings can also be configured on gateway rulesets and gateway farms.

Examples

Example 1

PS C:\> $security = New-DSGatewaySecurity -VaultRoleOverride All -DisallowDynamicConnections
PS C:\> Update-DSGateway -GatewayID $gatewayId -Security $security

Create a security configuration that gives permissions to all vaults and disables dynamic connections, then apply it to a gateway.

Example 2

Create a security configuration with access limited to specific vaults, disallow private vaults, and apply it to a gateway ruleset.

Example 3

Create a gateway with custom permissions for specific users, user groups, or application identities and a 5-minute RDP token reuse window.

Parameters

-CustomGatewayPermissions

List of principal IDs (users, user groups, or application identities) when GatewayPermissionOverride is set to Custom. Use Guid format or Guid string format.

-CustomVaultAccess

List of vault IDs when VaultRoleOverride is set to Custom. Use Guid format or Guid string format.

-DisableRdpProxyCredentialInjection

Disable RDP proxy credential injection.

-DisallowDynamicConnections

Disallow dynamic connections through the gateway.

-DisallowPrivateVaults

Disallow access to private vaults.

-DisallowRDPReconnection

Disallow RDP reconnection through the gateway.

-GatewayPermissionOverride

Gateway permission override mode (Default, Custom, Everyone, Never). The Default value is defined in the system settings. If Custom, specify principal IDs with CustomGatewayPermissions.

-RDPTokenReuseWindow

RDP token reuse window in minutes. Must be a positive integer.

-VaultRoleOverride

Which vaults the gateway grants access to (All, Custom, Never). If Custom, specify vault IDs 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.

Outputs

Devolutions.Server.Models.Shared.Models.Gateway.GatewaySecurity

Notes

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

Last updated

Was this helpful?