Location:
State:
Carrier
Country
Status

Shortcut to enable/disable network (wired)


Sorry if I missed it but it seems there is none posted under Shortcuts nor Internet & Network. I've tried searching for a solution but found no proper for Win10.
There was at least one working in Win7 but it seems to have changed in Win10.
I'm not looking for Wireless or Airplane just simple wired Ethernet LAN.

Thanks in advance
ifive


Solved by T0mmy1977


  1. Create a batch file to execute the command below:
  2. netsh interface set interface name="Local Area Connection" admin=disabled
  3. Subsitute the actual network connection name if it isn't "Local Area Connection".
  4. Copy the batch file and change "disabled" to "enabled" for reactivation.
  5. Use "Create shortcut" on both, right-click and set "Shortcut" > "Advanced..." > "Run as administrator".
  6. Proper icons can be changed using "%SystemRoot%system32imageres.dll" in "Shortcut" > "Change Icon...".
  7. If you prefer white use "%SystemRoot%system32pnidui.dll" instead.

Sorry if I missed it but it seems there is none posted under Shortcuts nor Internet & Network. I've tried searching for a solution but found no proper for Win10.
There was at least one working in Win7 but it seems to have changed in Win10.
I'm not looking for Wireless or Airplane just simple wired Ethernet LAN.

Thanks in advance
ifive
The few times I've needed to do I right-clicked the Start button, clicked Device Manager, clicked the + on Network adaptersand then right-clicked the adapter to Disable or Uninstall depending upon which I needed.

Sorry if I missed it but it seems there is none posted under Shortcuts nor Internet & Network. I've tried searching for a solution but found no proper for Win10.
There was at least one working in Win7 but it seems to have changed in Win10.
I'm not looking for Wireless or Airplane just simple wired Ethernet LAN.

Thanks in advance
ifive
Navigate to your Network Connections page in Control Panel, right click on your adapter and create a short cut...



paste that shortcut into a custom Quick Launch folder...



which will give you a small icon on your taskbar...


Thanks for fast replies.

I know the long way, that's why I've started with "Shortcut ...".

I've also tried the "Create Shortcut"-Version before by my own.
First usage disables as expected.
Second usage enables as expected.
Don't ask me why any further usage during the same session tries to enable an enabled connection again and again instead of disabling it. Note that right click also offers only "Activate". And I've tried it just right now again, just in case I did something wrong by my own in the first place.
That's the reason I'm asking for a real Shortcut - one click to disable/enable a wired Ethernet LAN, don't matter whether one or two shortcuts are necessary to fulfill the job.

You could try NetSetMan then.

Thanks, I know there are some applications that can handle your connections. But that's another app that has to be running in the first place...
As I've written, it was possible in Win7 and as far as I've read also in Win8(.1). I'm curious to know a solution in Win10.

I found the below Googling. You can create a batch file to execute the command below.

netsh interface set interface name="Local Area Connection" admin=disabled
Subsitute the actual network connection name if it isn't Local Area Connection.

Thanks. I've found it before, too. For some curious reason I did something wrong.

To finish the task:
Copy the batch file and change "disabled" to "enabled" for reactivation.
Use "Create shortcut" on both, right-click and set "Shortcut" > "Advanced..." > "Run as administrator".
Proper icons can be changed using "%SystemRoot%system32imageres.dll" in "Shortcut" > "Change Icon...". If you prefer white use "%SystemRoot%system32pnidui.dll" instead.

Shortcut to enable/disable network (wired)