I just found that on Windows 7, it can be done with another netsh command. Maybe this also works on Win 10?
First, find out the complete name of your network device you want to cycle:
netsh interface show interface
This will give you a list of available interfaces in your system like so (excuse the german :D):
Verw.-status Status Typ Schnittstellenname
-------------------------------------------------------------------------
Aktiviert Verbunden Dediziert LAN-Verbindung 3
Note down the name of the device you want to cycle as you will need it in a second.
Then, enter:
netsh interface set interface name="<YOUR-IF-NAME>" admin=DISABLED
This will disable the selected network device.
After a few seconds, you should see the device status toggle (in the tray or network device list or wherever..).
Then, enter:
netsh interface set interface name="<YOUR-IF-NAME>" admin=ENABLED
This will start the interface up again and hopefully, your connection can then be established.
+1 I also get this problem sometimes with my openVPN utilities messing up my network configuration.
netsh winsock reset
only works with restart. A hotfix would help a lot if the work you're doing doesn't allow a restart within like the next 8 hours... – Spectraljump – 2017-08-11T20:36:05.413