Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Get-VBRViVirtualSwitch

Short Description

Returns VMware virtual switches.

Applies to

Platform: VMware

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

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

Detailed Description

This cmdlet returns VMware virtual switches that are created on a ESX(i) 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.

Accepts CHost (standalone host) or CViClusterItem (cluster) type.

True

Named

True (by Value
FromPipeline, ValueFromPipeline
ByPropertyName)

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

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.

PS C:\PS> $server = Get-VBRServer –Type ESXi -Name "ESXiHost"

PS C:\PS> 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.

PS C:\PS> $cluster = Find-VBRViEntity -Server ESXiHost -HostsAndClusters -Name vSAN

PS C:\PS> Get-VBRViVirtualSwitch -Server $cluster

Related Commands

Get-VBRServer

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation