Share via

Enable/Disable Network interface via command line

Anonymous
2010-07-09T19:20:04+00:00

Hi guys,

Anybody here who could point me to a resource or a command line instruction to disable a network interface in Windows 7? Your help would be highly appreciated. Thanks in advance!

Em

Windows for home | Previous Windows versions | Devices and drivers

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

28 additional answers

Sort by: Most helpful
  1. Anonymous
    2011-10-20T04:05:19+00:00

    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=7 call enable

    Disable NIC with index number: (eg: 7)

    wmic path win32_networkadapter where index=7 call disable

    193 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2011-10-20T04:14:41+00:00

    Yes, you are right. We can also use these commands:

    wmic path win32_networkadapter where NetConnectionID="Wireless Network Connection" call disable

    wmic path win32_networkadapter where NetConnectionID="Wireless Network Connection" call enable

    It's simple to just give network interface name. But the most important is that you must run as administrator.

    12 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2012-02-14T22:51:48+00:00

    Worked for me straight away on win7x32 Premium,I made 2 shortcuts for enable and disable.Perfect,thanx

    3 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2011-10-20T03:27:27+00:00

    It doesn't work on Win7.

    1 person found this answer helpful.
    0 comments No comments