How to turn off LAN with CMD command

How to turn off LAN with CMD command. Because turning on and off LAN is related to system rights, you have to start CMD under Admin. Proceed as follows

CMD, also known as Command Prompt, an application that allows developers to run test commands or interfere with the system. In today's article, TipsMake.com shared with readers an interesting feature with Command Prompt that is how to turn on and off LAN with commands in CMD. Please read along.

How to turn off LAN with CMD command Picture 1How to turn off LAN with CMD command Picture 1

Because turning on and off LAN is related to system rights, you have to start CMD under Admin. Proceed as follows:

Step 1: On Windows 7 , open the Start menu (1) => search with the keyword cmd (2) => right-click cmd (3) => select Run as administrator (4) .

How to turn off LAN with CMD command Picture 2How to turn off LAN with CMD command Picture 2

On Windows 10 , you search on Windows (1) and search for the keyword Command Prompt (2) . Then, select Run as administration (3) .

How to turn off LAN with CMD command Picture 3How to turn off LAN with CMD command Picture 3

If there is a message as shown below, then select Yes .

How to turn off LAN with CMD command Picture 4How to turn off LAN with CMD command Picture 4

Step 2: Enter the following command and press Enter .

netsh interface show interface

How to turn off LAN with CMD command Picture 5How to turn off LAN with CMD command Picture 5

Then you remember the LAN name highlighted in red Interface Name section is Ethernet0 or maybe Local Area Connection .

Step 3: You continue to enter the following command and Enter.

netsh interface set interface name = "LAN name" admin = DISABLED

In which "LAN name" is the name of the network you have seen in Step 2 .

How to turn off LAN with CMD command Picture 6How to turn off LAN with CMD command Picture 6

If your LAN icon is disconnected as shown below is successful.

How to turn off LAN with CMD command Picture 7How to turn off LAN with CMD command Picture 7

Step 4: To reopen the LAN, execute the following command.

netsh interface set interface name = "LAN name" admin = ENABLE

Where "LAN name" is your network name.

How to turn off LAN with CMD command Picture 8How to turn off LAN with CMD command Picture 8

After executing the command on the LAN, it will open again and connect successfully.

How to turn off LAN with CMD command Picture 9How to turn off LAN with CMD command Picture 9

With instructions to turn off and turn on the LAN with CMD, we can quickly turn on and off the LAN with the command line CMD and not have to manipulate complicated. Good luck!

4 ★ | 1 Vote