October 16th, 2013

PowerTip: Create a Virtual Switch in Hyper-V with Windows PowerShell

Doctor Scripto
Scripter

Summary: Use built-in Hyper-V cmdlets to create virtual switches.

Hey, Scripting Guy! Question How can I use Windows PowerShell in Hyper-V Server 2012 R2 to create a virtual switch on a private LAN?

Hey, Scripting Guy! Answer 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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.