How to add network adapter to Windows 10 Hyper-V virtual machine

Tashreef Shareef
by Tashreef Shareef
Windows & Software Expert
0 Comments
Download PDF
Affiliate Disclosure

Add Hyper-V Virtual machine Network Switch

If you are a system admin and work with Microsoft Hyper-V virtual machine, you may want to know how to add a network adapter to Windows 10 Hyper-V virtual machine.

The latest version of Windows Hyper-2016 added the functionality that allows you to add or remove virtual network adapters to/from running virtual machines.

Ad

If you are new to the Windows Hyper-V virtual machine world, there are a lot of things to learn.

However, knowing how to add a network adapter to the Virtual machine is an essential part of running the VMs successfully.

How to add network adapter to Windows 10 Hyper-V

In this article, we show you how to add a network adapter to Windows 10 Hyper-V virtual machines. There are two ways to achieve this, and we have listed both the methods in this article.

1. Add Virtual Network Adapter from Hyper-V Manager

  1. Launch Hyper-V Manager on your Windows 10 machine.
  2. First you need to make sure that you have a network adapter added into your Virtual Switch manager.
    add network adapter to Windows 10 Hyper-V
  3. To do this, click on the Virtual Switch Manager from the right pane in Hyper V-Manager.
    add network adapter to Windows 10 Hyper-V
  4. In the new window, from the left pane check if you have Virtual Network Card. You should see something like the New Virtual Switch.
  5. Click Cancel.
    add network adapter to Windows 10 Hyper-V
  6.  In the Hyper V-Manager, right-click on the Virtual Machine and select Settings.

  7. Under the “Add Hardware” section, select Network Adapter.
  8. Click the Add button.
  9. It will show you the Network Adapter window.
    add network adapter to Windows 10 Hyper-V
  10. Under “Virtual Switch“, click the drop-down menu and select “New Virtual Switch“.
  11. Click on Apply to save the changes. Click OK.
  12. If you have multiple Virtual Machine, you can add the same new virtual switch to other virtual machines as well.
  13. The Hyper-V is capable of sharing network resources with multiple VMs as long as you are running a Cat 5/6 cable on a Gigabit switch to reduce latency.

5 best backup software for Hyper-V to use in 2019


2. Add network adapter to Windows 10 Hyper-V using PowerShell

  1. If you don’t want to use the Hyper-V Manager or prefer your PowerShell do the talking, you can use PowerShell to add a network adapter to Windows 10 Hyper-V virtual machine.
  2. Right-click on Start and select Windows PowerShell (admin).

  3. In the PowerShell terminal, type the following command and hit enter.
    Add-VMNetworkAdapter -VMName svwdsg2-12r2 -SwitchName vSwitch -Name HotAdded -DeviceNaming On
  4. Wait for the command to execute and that’s it. You have successfully added a virtual network adapter in Hyper-V.
  5. The above command should work on configuration version 6.2 and above.

Remove Virtual Network Adapter

  1. In case you want to remove the virtual network adapter, you can use the following PowerShell command.
    Remove-VMNetworkAdapter -VMName svwdsg2-12r2 -Name HotAdded

The Problem!

  1. The above command will simply remove all the network adapters that match the name unless you specify the name of the adapter to be removed.
  2. To overcome this problem you can either use filters or simply use the Hyper-V Manager to remove the adapter.
  3. In the Hyper-V Manager, right-click on your virtual machine and select Settings.
    add network adapter to Windows 10 Hyper-V
  4. From the left pane, click on Network Adapter and then click the Remove button.
  5. Click Apply to save the changes.

RELATED STORIES YOU MAY LIKE:

Ad
Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!