richardhicks / aovpn

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

Remove-AovpnConnection CleanupOnly doesn't work #17

Closed timwsuqld closed 2 years ago

timwsuqld commented 2 years ago

The logic for CleanUpOnly doesn't appear to work anymore. We only do the cleanup if If ($ProfileRemoved) which is always false unless we've run the code in the first if block, which is skipped when CleanUpOnly is true.

richardhicks commented 2 years ago

Thanks for bringing that to my attention! I'll have a look soon and correct that. :)

richardhicks commented 2 years ago

Issue correct. Please download and test again. It should work as expected now. Thanks again!