This has now been added to pshvm.codeplex.com a free powershell hyper-v manager project.
Free Script: Network Team and Virtual Switch Manipulation for Hyper-V 2012
I’ve designed a PowerShell script to help you with network team and virtual switch management in Hyper-V Server 2012. It will also work for Windows Server 2012.
Download the script file: SwitchesAndTeamsThis will work whether or not you have a GUI version of Windows Server 2012 or if it’s Hyper-V Server 2012.
- Create and delete network teams
- Set IP information on the primary team adapter
- Create and delete virtual switches
- Create and delete virtual adapters
- Set IP information on management OS virtual adapters
- Set the VLAN ID for management OS virtual adapters
Read more: http://www.altaro.com/hyper-v/free-script-network-team-and-virtual-switch-manipulation-for-hyper-v-2012/#ixzz2U1z5zpXl