Create Hyper-V external VMSwitch with PowerShell


You can create Hyper-V VMSwitches very easely with Powershell since Hyper-V 2012 :

New-VMSwitch -NetAdapterName "Ethernet" -Name vEthExternal -AllowManagementOS $true
New-VMSwitch -Name 'vPrivate' -SwitchType Private
New-VMSwitch -Name 'vInternal' -SwitchType Internal

Hint : The first NIC of a computer is allways named “Ethernet”.

You can check the result with :




Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.