Thursday, June 29, 2023

How to disable and enable network adapter in windows via cmd

This command requires elevated command prompt - CMD must Run As Admin

First run this command to see which adapter is available in your system

cmd:\>netsh interface show interface

Sample output below

 Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Connected      Dedicated        Local Area Connection


cmd:\>netsh interface set interface name="Local Area Connection" admin=DISABLED

cmd:\>netsh interface set interface name="Local Area Connection" admin=ENABLE

That's it you have successfully disabled and enable your network adapter

 

No comments:

Post a Comment