Remove-VBRPreferredNetwork

In this article

    Short Description

    Removes preferred networks.

    Applies to

    Platform: VMware, Hyper-V

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

    Syntax

    Remove-VBRPreferredNetwork -Network <VBRPreferredNetwork[]> [-WhatIf] [-Confirm]  [<CommonParameters>]

    Detailed Description

    This cmdlet removes an array of preferred networks created for the backup infrastructure. The cmdlet will remove all preferred networks added to the backup infrastructure.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Network

    Specifies an array of preferred networks 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 preferred networks added to the backup infrastructure.

    1. Run Get-VBRPreferredNetwork to get an array of preferred networks. Save the result to the $rule variable.
    2. Run Remove-VBRNetworkTrafficRule with the $network variable.

    $network = Get-VBRPreferredNetwork

    Remove-VBRNetworkTrafficRule -Network $network

    Related Commands

    Get-VBRPreferredNetwork