A way to disable the Internet connection with AutoHotkey:
Run, *RunAs %ComSpec% /c netsh interface set interface name="Local Area Connection" admin=disabled,, Hide
A way to enable the Internet connection with AutoHotkey:
Run, *RunAs %ComSpec% /c netsh interface set interface name="Local Area Connection" admin=enabled,, Hide
Tests done with Windows 7. "Local Area Connection" needs to be your adapter connection's name.
Run, *RunAs %ComSpec% /c netsh interface set interface name="Local Area Connection" admin=disabled,, Hide
A way to enable the Internet connection with AutoHotkey:
Run, *RunAs %ComSpec% /c netsh interface set interface name="Local Area Connection" admin=enabled,, Hide
Tests done with Windows 7. "Local Area Connection" needs to be your adapter connection's name.