Reset Windows TCP / IP For Clearing VPN Issues Run these commands in an elevated command prompt. netsh winsock reset netsh int ip reset ipconfig /release ipconfig /renew ipconfig /flushdns
To run in a script with powershell it may need
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass