Last active
December 4, 2015 14:45
-
-
Save duffney/2d1489abc3ac31315edb to your computer and use it in GitHub Desktop.
Create Hyper-V Network Adapters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Get Net Adapter Names | |
$NetAdapterName = (Get-NetAdapter).Name | |
#Create the External Hyper-V Switch | |
New-VMSwitch -NetAdapterName $NetAdapterName[0] -Name 'External' | |
#Create the Internal Hyper-V Switch | |
New-VMSwitch -SwitchType Internal -Name 'Internal' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment