Get-VBRViVirtualSwitch

In this article

    Short Description

    Returns VMware virtual switches.

    Applies to

    Platform: VMware

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

    Syntax

    Get-VBRViVirtualSwitch -Server <Object[]>  [<CommonParameters>]

    Detailed Description

    This cmdlet returns VMware virtual switches that are created on a ESXi host or cluster.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Server

    Specifies the ESX or ESXi host or cluster. The cmdlet will return the virtual switches created on this host or cluster.

    True

    Named

    True (ByValue,
    ByProperty
    Name)

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

    Return Type

    VBRViVirtualSwitch

    Example 1

    This example shows how to get switches created on the host named "ESXiHost" .

    1. Run Get-VBRServer to get the host. Save it to the $server variable.
    2. Run Get-VBRViVirtualSwitch using the $server variable.

    $server = Get-VBRServer –Type ESXi -Name "ESXiHost"

    Get-VBRViVirtualSwitch -Server $server

    Example 2

    This example shows how to get switches created on the VMware cluster named "vSAN" .

    1. Run Find-VBRViEntity to get the cluster. Save it to the $cluster variable.
    2. Run Get-VBRViVirtualSwitch using the $cluster variable.

    $cluster = Find-VBRViEntity -Server ESXiHost -HostsAndClusters -Name vSAN

    Get-VBRViVirtualSwitch -Server $cluster

    Related Commands

    I want to report a typo

    There is a misspelling right here:

     

    I want to let the Veeam Documentation Team know about that.