I need to upgrade the VPN client on my site with about 700 users on the VPN. I built the new client set the hierarchy and supersedence correctly for the new and old apps. Set the old one to uninstall before the new app is installed however it will not uninstall.
I am trying to run a PowerShell script as an uninstall parameter in an application deployment, because i want to check weather or not the VPN is connected. I don't want to disconnect someone in the middle of what ever they might be doing. Who knows. Anyway, This script works perfectly fine when i ran it from elevated command prompt on the local machine. But if i deploy this script through SCCM it fails in about 3 seconds.
The VPN client closes and the uninstall never completes. I can replicate the same behavior if i start the script from a non elevated command prompt on the test machine.
The VPN application is set to run for system and not user.
I've tried to kill the process in the script but the script never fails and just hangs there until it times out (same behavior as a non elevated command prompt)
This is my Uninstall operation on the old VPN client: powershell.exe -noprofile -executionpolicy bypass -file .\Uninstall.ps1
Any help would be appreciated.