richardhicks / aovpn

PowerShell scripts and sample ProfileXML files for configuring Windows 10 Always On VPN
MIT License
158 stars 83 forks source link

Corruption of rasphone.pbk after invoking #6

Closed sc00terMcP closed 4 years ago

sc00terMcP commented 4 years ago

I have been having issues getting this to work properly and the deltas from April 30 to June 4 do not seem to address this. The file attached was created using the April 30 version. rasphone.pbk.corrupt.txt rasphone.pbk.txt

Invoking via SCCM as a Package, deployed to a User, so it runs in the user context.

The computer is currently running 1809, with a User based Always On VPN connection that is connected at the time of running.

It is invoked as a bat file as such: @ECHO OFF SET MyDirectory=%~dp0 SET PowerShellScriptPath=%~dp0Update-RasPhone.ps1 PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%PowerShellScriptPath%' -ProfileName 'REDACTED_VPN' -InterfaceMetric 1"

Attached is a working rasphone.pbk prior to running the script and the corrupt pbk from after the script running. Notice the increased size and "Collections.ArrayList" entries.

Any ideas?

richardhicks commented 4 years ago

Sorry to hear about the trouble! I'll have a look ASAP and let you know what I find!

richardhicks commented 4 years ago

Confirmed issue with SCCM.