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.
  • 12 Users Found This Useful
Was this answer helpful?

Related Articles

Windows 2008 R2 Command Line Activation

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

Disable Microsoft DNS Version Query

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

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...

Enable Java Plugins on Chrome Version 42

Enter the following in your Chrome Browser:chrome://flags/#enable-npapi Click the enable button.

Fix Trust Relationship Between Computer and Primary Domain

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