Enable/Disable NIC Using Windows Command Line

Start elevated Command Prompt.

Get NIC list and index number:
wmic nic get name, index

Enable NIC with index number: (eg: 7)
wmic path win32_networkadapter where index=7call enable

Disable NIC with index number: (eg: 7)
wmic path win32_networkadapter where index=7call disable

If you are using Hyper-V Core you can use the Hyper-V menu to display the index of the Hyper-V Management NICs.  You can also use IPConfig /all on the command line to help identify NICs by IP address.
  • 13 Users Found This Useful
Was this answer helpful?

Related Articles

Install Application in RD Session Host Mode

To install an end-user application on an RD Session Host server, the RD Session Host server must...

Fix Trust Relationship Between Computer and Primary Domain

Sometimes the trust relationship between a computer (physical server, VM, Hyper-V Host, etc) and...

Windows Driver Removal

Hidden drivers can exist in your Windows computer which can cause problems.  You may be able to...

Disable Microsoft DNS Version Query

Running the following command from the Microsoft DNS Server will disable the Version Query...

Windows 2008 R2 Command Line Activation

Open the Command Prompt as an Administrator to run the following commands...Check the current...