This PowerShell script cleans up your Windows routing table and re-create it again as it should.
Preparation (to do it once):
- Make sure you have Windows PowerShell installed;
- Clone this entire repository or just download a "modify-vpn-routes.ps1" script;
- Launching PowerShell:
- Select "Start, type "Windows PowerShell", select Windows PowerShell and Run it as Administrator;
- To be able to run the script type "Unblock-File" and a path to file "modify-vpn-routes.ps1";
- To be able to run "RemoteSigned" content type "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser" and press Enter;
- Type "A" and press Enter.
Changing routing:
- Establish a VPN connection;
- Run script "modify-vpn-routes.ps1":
- In File Explorer (or Windows Explorer), right-click the script file name and then select "Run with PowerShell";
- Make sure your Internet connection and Internal resources are available;
Every time you re-establish a VPN connection, you need to repeat steps 2-3 from the "Changing routing" section.
Just try it.