CMD, also known as Command Prompt, is an application that allows developers to execute commands to inspect or intervene in the system. In today's article, Mytour shares an interesting feature of Command Prompt with you: toggling LAN network using CMD. Let's dive in!
Since toggling LAN network operations involve system privileges, you must launch CMD as an Administrator. Here's how to do it:
Step 1: On Windows 7, open the Start menu (1) => search for cmd (2) => right-click on cmd (3) => choose Run as administrator (4).
For Windows 10, search on Windows (1) and look for Command Prompt (2). Then, select Run as administration (3).
If you see a prompt like the one below, simply choose Yes.
Step 2: Enter the following command and press Enter.
netsh interface show interface
After that, remember the LAN network name circled in red in the Interface Name section, it could be either Ethernet0 or Local Area Connection.
Step 3: You then enter the following command and press Enter.
netsh interface set interface name='LAN Network Name' admin=DISABLED
Where 'LAN Network Name' is your network name as seen in Step 2.
If your LAN network icon shows disconnected as depicted below, it indicates success.
Step 4: To re-enable the LAN network, execute the following command.
netsh interface set interface name='LAN Network Name' admin=ENABLE
Where 'LAN Network Name' is your network name.
After executing the command, the LAN network will reopen and connect successfully.
With the guide to toggle LAN network using CMD, we can quickly toggle the LAN network with just a CMD command, avoiding complex operations. Wishing you success!