Remove-VBRDefaultGateway
Short Description
Removes default cloud gateways.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Remove-VBRDefaultGateway -Gateway <VBRDefaultGateway> [-WhatIf] [-Confirm] [<CommonParameters>] |
Detailed Description
This cmdlet removes a selected cloud default gateway.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Gateway |
Specifies the default cloud gateway you want to remove.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Confirm |
Defines that the cmdlet will display a prompt that asks if you want to continue running the command.
Note: Microsoft PowerShell enables the |
|
False |
Named |
False |
|
WhatIf |
Defines that the cmdlet will write a message that describes the effects of running the cmdlet without actually performing any action. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Removing Default Gateway [Using Pipeline]
This example shows how to remove a default gateway.
|
$configuration = Get-VBRDefaultGatewayConfiguration $configuration.DefaultGateway | Remove-VBRDefaultGateway |
Perform the following steps:
- Run the
Get-VBRDefaultGatewayConfigurationReturns configuration of default gateways. cmdlet. Save it to$configurationvariable. - Get the default gateway using the
DefaultGatewayproperty of the$configurationvariable. Pipe the result to theRemove-VBRDefaultGatewaycmdlet.
Related Commands
Get-VBRDefaultGatewayConfigurationReturns configuration of default gateways.