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.

Picture 1 of 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:

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) .

Picture 2 of How to turn off LAN with CMD command

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

Picture 3 of How to turn off LAN with CMD command

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

Picture 4 of How to turn off LAN with CMD command

Step 2: Enter the following command and press Enter .

netsh interface show interface

Picture 5 of How to turn off LAN with CMD command

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 .

Picture 6 of How to turn off LAN with CMD command

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

Picture 7 of How to turn off LAN with CMD command

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.

Picture 8 of How to turn off LAN with CMD command

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

Picture 9 of How to turn off LAN with CMD command

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!

Update 19 May 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile