Just wanted to give an update on what i have done to get it to work consistently without changing the settings back. I used the info provided by @MerakiCrazy31 but instead of copying it to the desktop i renamed the original folder to old. After that I recreated a new PBK folder and a new subfolder named _hiddenPbk but left them empty other than the names of the folders. After this I used a cmd as admin and ran the command netsh winsock reset and restarted the computer. After this I have been able to connect and disconnect from my vpn consistently without it changing any settings whatsoever. Hope this helps someone else.
... View more