PowerShell Logo Small

Get-VMSwitch



This is the built-in help made by Microsoft for the command 'Get-VMSwitch', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets virtual switches from one or more virtual Hyper-V hosts.

SYNTAX


Get-VMSwitch [[-Name] <String>] [[-ResourcePoolName] <String[]>] [-ComputerName <String[]>] [-SwitchType <VMSwitchType[]>] [<CommonParameters>]
Get-VMSwitch [[-Id] <Guid[]>] [[-ResourcePoolName] <String[]>] [-ComputerName <String[]>] [-SwitchType <VMSwitchType[]>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-VMSwitch gets the virtual switches from a Hyper-V host. If you specify no parameters, this cmdlet returns all virtual switches from the local Hyper-V host.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306875

REMARKS

<

Examples


Example 1

PS C:\>Get-VMSwitch



Gets all virtual switches from the local Hyper-V host.




Example 2

PS C:\>Get-VMSwitch –SwitchType External



Gets all virtual switches that connect to the external network.