How to disable network interface command line on windows 10

open command prompt with elevated privileges

To view network interfaces type below command

netsh interface show interface

Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Connected      Dedicated        VirtualBox Host-Only Network
Enabled        Disconnected   Dedicated        Local Area Connection 2
Enabled        Disconnected   Dedicated        Ethernet 2
Enabled        Connected      Dedicated        Ethernet 3
Enabled        Connected      Dedicated        Ethernet

Now type in the below command to disable network interface listed under Interface Name

C:\WINDOWS\system32>netsh interface set interface name="Ethernet" admin=disabled

Now type in the below command to enable network interface listed under Interface Name


C:\WINDOWS\system32>netsh interface set interface name="Ethernet" admin=enabled

Comments

Popular posts from this blog

Create folder with current date as name

మీ వాట్సాప్ లో రెండు-దశల ధృవీకరణ కోడ్‌ను ఎలా ప్రారంభం చేయాలి