This is an archive version of the document. To get the most up-to-date information, see the current version.

Remove-VBRNetworkTrafficRule

Short Description

Removes network traffic rules.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Remove-VBRNetworkTrafficRule -Rule <VBRNetworkTrafficRule[]> [-WhatIf] [-Confirm]  [<CommonParameters>]

Detailed Description

This cmdlet removes network traffic rules from the backup infrastructure.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Rule

Specifies an array of network traffic rules that you want to remove.

True

Named

True (ByValue)

False

WhatIf

Specifies whether the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.

False

Named

False

False

Confirm

Specifies whether the cmdlet displays a prompt that asks if the user is sure that they want to continue.

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Return Type

Example

This example shows how to remove a network traffic rule from the backup infrastructure.

  1. Run Get-VBRNetworkTrafficRule to get the network traffic rule that you want to remove. Save the result to the $rule variable.
  2. Run Remove-VBRNetworkTrafficRule with the $rule variable.

$rule = Get-VBRNetworkTrafficRule -Name "Rule #5"

Remove-VBRNetworkTrafficRule -Rule $rule

Related Commands

Get-VBRNetworkTrafficRule