paulstancer / VPNCredentialsHelper

This repository contains the code used to build the Powershell helper module: VPNCredentialsHelper that can be used to set the username and password of a VPN connection without having to manually enter them through the prompt.
16 stars 5 forks source link

'AlwaysOn' causes ignored set-password call #2

Open stampycode opened 4 years ago

stampycode commented 4 years ago

This feels like it's probably RasDial failing - but when the VPN is configured in 'AlwaysOn' mode, the VPN is created in 'Action Needed' mode since it's created without the username/password it needs to connect.

When I try to use the VPNCredentialsHelper to set the username + password, they are silently ignored and do nothing.

Nothing I can do seems to fix this - manual intervention is always required to complete the setup...

Any suggestions?

Thanks for your efforts on this tool - extremely useful piece of work! 👍

stampycode commented 4 years ago

So turns out the username + password are set, but the VPN auto-dialler takes several minutes to realise this. Alternatively you can open the VPN dialogue where it says "Please provide username and password", then click Cancel and it connects.

I had a look at extending the VPNCredentialsHelper to call a few more functions via C# to reload the connection, but I ran out of time...

Suggestions on a postcard!