Set-VBRDefaultGatewayConfiguration

Short Description

Modifies default gateway configuration.

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Set-VBRDefaultGatewayConfiguration -Configuration <VBRDefaultGatewayConfiguration> [-EnableRouting] [-PassThru] [<CommonParameters>]

Detailed Description

This cmdlet modifies settings of the default gateway.

Note

To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Configuration

Specifies the default gateway configuration that you want to modify.

Accepts the VBRDefaultGatewayConfiguration object. To get this object, run the Get-VBRDefaultGatewayConfigurationReturns configuration of default gateways. cmdlet.

VBRDefaultGatewayConfiguration

True

Named

True (ByPropertyName, ByValue)

EnableRouting

Enables routing option for the gateway.

SwitchParameter

False

Named

False

PassThru

Defines that the command returns the output object to the Windows PowerShell console.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRDefaultGatewayConfiguration[]

Examples

Enabling Routing for Selected Default Gateway Configuration

This example shows how to enable routing for a selected default gateway configuration.

$c = Get-VBRDefaultGatewayConfiguration

Set-VBRDefaultGatewayConfiguration -Configuration $c -EnableRouting

Perform the following steps:

  1. Run the Get-VBRDefaultGatewayConfigurationReturns configuration of default gateways. cmdlet. Save the result to $c variable.
  2. Run the Set-VBRDefaultGatewayConfiguration cmdlet. Set the $c variable as the Configuration parameter value. Provide the EnableRouting parameter.

Get-VBRDefaultGatewayConfigurationReturns configuration of default gateways.

Page updated 2026-08-19

Page content applies to build 13.1.1.18