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
Post a Comment