Start a Command Prompt as administrator.
To show a list with 'Interface(s) Names', 'States' and more, type the following:
netsh interface show interface
It will echo something should like this.
> netsh interface show interface
Admin State State Type Interface Name
-------------------------------------------------------------------------
Enabled Connected Dedicated Local Area Connection
Disabled Disconnected Dedicated Local Area Connection 4
- Now, pick an 'Interface Name' from your list.
for example, as you can see, mine is 'Local Area Connection'
To ENABLE the selected connection type the following:
Where is "%InterfaceName%" place your Interface Name. Beware: Close the 'Interface Name' in double quotes ["] if includes spaces, like mine for example: "Local Area Connection".
netsh interface set interface "%InterfaceName%" ENABLE
OR if doesn't work for you, try the next:
netsh interface set interface name="%InterfaceName%" admin=ENABLED
To DISABLE the selected connection type the following:
netsh interface set interface "%InterfaceName%" DISABLE
OR if doesn't work for you, try the next:
netsh interface set interface name="%InterfaceName%" admin=DISABLED
TIP: You can make a 'Restart Connection.cmd' or 'Restart Connection.bat' to do the job with just a double click. ;)
This could be like this:
@echo off
mode con: cols=80 lines=27
title Connection Restart
color 1f
cls
echo This program restarts Internet Connection adapter.
echo.
echo List of network adapters (Internet adapters)
netsh interface show interface
echo ==========================================================================
:: Setting Interface Name
set InterfaceName=Local Area Connection
:Disadling adapter
echo. & echo
echo RESTARTING "%InterfaceName%" adapter. WAIT...
netsh interface set interface "%InterfaceName%" disable
echo "%InterfaceName%" adapter disabled. Wait...
echo. & echo.==========
timeout /t 5 >nul
:Enabling adapter
netsh interface set interface "%InterfaceName%" enable
echo "%InterfaceName%" adapter Enabled. Wait...
echo. & echo.==========
echo Procedure completed successfully
timeout /t 6 >nul
EXIT
Note that the only thing you need to Replace in this Batch to make it work for you is the (exact) name of your 'Interface Name' in the 13th line.
For example, the name in BOLD:
set InterfaceName=Local Area Connection.
This line (13th) makes this variable "%InterfaceName%" so you don't need to change anything else to work. But you would experiment if you like.
Enjoy