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

Related Articles

.NET 4.0 in IIS7 on Windows 2008 R2

Windows 2008 R2 (all editions) are packaged with .NET 4.0 on the servers provisioned at CeraNet....

.NET 4.0 in IIS7 on Windows 2008 R2

Windows 2008 R2 (all editions) are packaged with .NET 4.0 on the servers provisioned at CeraNet....

Configuring RD Licenses on Windows Server

Microsoft Windows 2012 R2 Server might display an unlicensed status warning even after the...

Configuring RD Licenses on Windows Server

Microsoft Windows 2012 R2 Server might display an unlicensed status warning even after the...

Disable Microsoft DNS Version Query

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