--- title: "Get-VBRViVirtualSwitch" description: "Returns VMware virtual switches. Platform: VMware Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet returns VMware virtual switches that are created on a ESXi host or cluster." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/get-vbrvivirtualswitch.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Veeam Cloud Connect > Veeam Cloud Connect Hardware Plans > Get-VBRViVirtualSwitch" dateModified: "2026-08-19" --- # Get-VBRViVirtualSwitch ## Short Description Returns VMware virtual switches. **Platform**: VMware **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Get-VBRViVirtualSwitch -Server [] ``` ## Detailed Description This cmdlet returns VMware virtual switches that are created on a ESXi host or cluster. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Server

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

Accepts the Object[] object. Run the Get-VBRServer cmdlet to get this object.

Object[]

True

Named

True (ByPropertyName, ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object [`VBRViVirtualSwitch`](vbrvivirtualswitch.md) ## Examples ::: example ### Example 1. Getting Switches Created on Selected Host This example shows how to get switches created on the host named `ESXiHost`. ``` $server = Get-VBRServer -Type ESXi -Name "ESXiHost" Get-VBRViVirtualSwitch -Server $server ``` Perform the following steps: 1. Run the [`Get-VBRServer`](get-vbrserver.md) cmdlet. Set the `ESXi` option for the `Type` parameter. Specify the `Name` parameter values. Save it to the `$server` variable. 2. Run the `Get-VBRViVirtualSwitch` cmdlet. Set the `$server` variable as the `Server` parameter value. ::: ::: example ### Example 2. Getting Switches Created on Selected VMware Cluster This example shows how to get switches created on the VMware cluster named `vSAN`. ``` $cluster = Find-VBRViEntity -Server ESXiHost -HostsAndClusters -Name vSAN Get-VBRViVirtualSwitch -Server $cluster ``` Perform the following steps: 1. Run the [`Find-VBRViEntity`](find-vbrvientity.md) cmdlet. Set the `ESXiHost` option for the `Server` parameter. Provide the `HostsAndClusters` parameter. Specify the `Name` parameter value. Save it to the `$cluster` variable. 2. Run the `Get-VBRViVirtualSwitch` cmdlet. Set the `$cluster` variable as the `Server` parameter value. ::: ## Related Commands - [`Get-VBRServer`](get-vbrserver.md) - [`Find-VBRViEntity`](find-vbrvientity.md)