How to remove a vpn connection from the azure vpn client via GPO scripts

Kyle Sicard 20 Reputation points
2024-01-29T15:59:28.3833333+00:00

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?

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.