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

Kyle Sicard 0 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 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,248 questions
{count} votes