This can be used if your network card (typically in a VM) is flaky and your VM can have strange issues. Try this from an elevated CMD. IF it works, you can script it.
netsh interface set interface ethernet1 disable
netsh interface set interface ethernet1 enable
exit