Summary: Use built-in Hyper-V cmdlets to create virtual switches.
How can I use Windows PowerShell in Hyper-V Server 2012 R2 to create a virtual switch on a private LAN?
Use the New-VMSwitch cmdlet.
For example, to create a virtual switch called SuperSecretLan that you can bind virtual machines to, use:
NEW-VMSWITCH –Name ‘SuperSecretLan’ –SwitchType Private
0 comments