How to Disable LAN connection from CMD

Configurare noua (How To)

Situatie

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

Solutie

Pasi de urmat
  • Open elevated command prompt
  • Run the below command
netsh interface set interface name="Local Area Connection" admin=DISABLED

Disable LAN connection from command prompt

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.

Tip solutie

Permanent

Voteaza

(9 din 15 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?