Skip to content

Instantly share code, notes, and snippets.

@duffney
Last active December 4, 2015 14:45
Show Gist options
  • Save duffney/2d1489abc3ac31315edb to your computer and use it in GitHub Desktop.
Save duffney/2d1489abc3ac31315edb to your computer and use it in GitHub Desktop.
Create Hyper-V Network Adapters
#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