c# - Deleting a VPN Connection -


after disconnect vpn using code system.diagnostics.process.start("rasdial.exe", "my_vpn /d"); still shows on vpn connection list. how can remove there through program?

if want delete vpn connection need delete file "rasphone.pbk" or section [vpn name] in file. file ini file extension pbk.

by default file located in %appdata%\microsoft\network\connections\pbk\rasphone.pbk

after delete operation need restart "explorer.exe"


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -