≡ Menu

How to Disable LAN connection from CMD

If you want to disable LAN connection from Windows command prompt, you can run the following steps.

  1. Open elevated command prompt
  2. Run the below command
    netsh interface set interface name="Local Area Connection" admin=DISABLED

    Disable LAN connection from command prompt
    That’s all you need to do. Now you may open ‘Network connections’ and confirm that the connection is disabled.

You can also use netsh command to check the connection status.

C:\>netsh interface show interface
Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Disabled       Disconnected   Dedicated        Local Area Connection 2
Enabled        Connected      Dedicated        Wireless Network Connection
Disabled       Disconnected   Dedicated        Local Area Connection

The output for the above netsh command shows that LAN connection is turned off.

2 comments… add one
  • Abhishek Gujrati

    how to enable it?

    • Dude

      Replace disabled by enabled…

Leave a Comment