
$net = Get-NetAdapter -Name 'Ethernet'Įxecute the following command to create the new Hyper-V virtual switch. Select the network adapter to use with the Hyper-V switch and place an instance in a variable named $net. Name InterfaceDescription ifIndex Status MacAddress LinkSpeedĮthernet 2 Broadcom NetXtreme 57xx Gigabit Cont.

Use Get-NetAdapter to return a list of network adapters connected to the Windows 10 system. The following steps can be used to create a virtual switch with an external connection using PowerShell. Select OK to close the Virtual Switch Manager Window. At this point you will most likely see the following message. Select Apply to create the virtual switch. This is the network card that is physically connected to the network. Select the physical network card to be paired with the new virtual switch. Under ‘Connection Type’, ensure that External Network has been selected. Under ‘Virtual Switch Properties’, give the new switch a name such as External VM Switch. Under 'What type of virtual switch do you want to create?', select External. Under the 'Virtual Switches' section, select New virtual network switch. In Hyper-V Manager, select Virtual Switch Manager. Select the server in the left pane, or click "Connect to Server." in the right pane. If search doesn't find Hyper-V Manager, Hyper-V or the Hyper-V management tools are not enabled. A quick way to do this is by hitting the Windows button or key then type "Hyper-V Manager". Create a Virtual Switch with Hyper-V Manager Once completed, your Hyper-V host will have a virtual switch that can connect virtual machines to the internet through your computer's network connection. This exercise walks through creating an external virtual switch. Create an external switch to share your computer's network with the virtual machines running on it. Hyper-V has three types of virtual switches - external, internal, and private. Creating a virtual network is optional - if your virtual machine doesn't need to be connected to the internet or a network, skip ahead to creating a Windows Virtual Machine. Your virtual machines will need a virtual network to share a network with your computer.
