Forum Discussion
CraigWK
May 05, 2022Copper Contributor
Azure VPN Client VPN from OMA-URI in MEM(Intune) Device config not removing itself
Hello! I set up a VPN connection by following this guide https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-profile-intune and it worked, it appeared in the Azure VPN Client app and connected. N...
- May 05, 2022did get-vpnconnection give you a profilename? if so, could you try rasdial VPNProfileName /DISCONNECT
Perhaps I'm way off with this, but it helped me a while back when I had a similar issue with a profile that did not want to disconnect..
Oktay Sari
May 05, 2022Iron Contributor
is this an always-on VPN? Could you try powershell?
get-vpnconnection to see what vpn profiles have been installed and remove-vpnconnection to remove the profile, if that is what you want.
PS. I know it doesn't answer the question, but perhaps could help you get rid of the VPN profile so you can troubleshoot without reconnecting automatically.
- CraigWKMay 05, 2022Copper ContributorHi - No, also via PS I get "The VPN connection cannot be removed from the local user connections: Cannot delete a connection while it is connected"
- Oktay SariMay 05, 2022Iron Contributordid get-vpnconnection give you a profilename? if so, could you try rasdial VPNProfileName /DISCONNECT
Perhaps I'm way off with this, but it helped me a while back when I had a similar issue with a profile that did not want to disconnect..- CraigWKMay 05, 2022Copper ContributorAmazing, yeah that worked - Now I can at least try troubleshooting the other issue!