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
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.
Leave A Comment?