Skip to content

Instantly share code, notes, and snippets.

@atzimler
Created June 25, 2017 09:50
Show Gist options
  • Select an option

  • Save atzimler/cdb3e5b802e340cb169b486da4203c41 to your computer and use it in GitHub Desktop.

Select an option

Save atzimler/cdb3e5b802e340cb169b486da4203c41 to your computer and use it in GitHub Desktop.
Add-VMNetworkAdapter -VMName dhcpserver -Name ExternalNetwork
$sw = Get-VMSwitch | Where {$_.SwitchType -eq "External"}
Connect-VMNetworkAdapter -VMName dhcpserver -Name "ExternalNetwork" -VMSwitch $sw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment