How to remove a vpn connection from the azure vpn client via GPO scripts
I have deployed a GPO that installs a PFX certificate then moves the azure vpn config.xml to the correct folder. Lastly, it then imports the config.xml into the azure vpn client for all requried users across the Enterprise. The issue I am having is that the previous vpn connection is not being over written by the batch script, azurevpn -i azurevpnconfig.xml. This command works without fail is there is no previous connection with the same name. Is there a batch command that will remove the previous vpn connection or allow the above command to overwrite the previous connection?
Saravanan, I implemented the above command as a separate batch script and while it does run the command it does not remove the VPN connection from Azure VPN Client. I tested it this morning and still have to manually remove the VPN connection from the azure vpn client for the new vpn connection to install.
Sign in to comment