1.

Solve : killing a vpn via dos?

Answer»

hey guys,

I have a batch file that needs a certain vpn dialed, so i have made shortcut for it and simply get the batch file to run "start vpn" and it connects ok.

My question is how can i get it to disconnect via dos also???

cheers in advance.find out whether that vpn SOFTWARE has a disconnect function. If no and you really absolutely can't find a way, KILL the vpn process using taskkill. i'm using XP to connect a vpn, so no other software is included.

also when you connect with xp i couldn't find a process in taskmgr to kill. (had the same idea)

cheers for the reply.
yes..so what is the command that you use to connect vpn?Quote from: ghostdog74 on September 12, 2007, 02:46:00 AM

yes..so what is the command that you use to connect vpn?
Also, if you can get the path of vpn and type path\file.exe /? in Command Prompt, we would learn if there's any COMMANDLINE parameters for it.having spent a day on google and speaking to the NETWORK admin at my office, i've found "rasdial"

i can use;

rasdail name-of-vpn username password

this will connect me to already made vpn.

Then it just a simple case;

rasdial /Disconnect

and i'm done.

Cheers guys.


Discussion

No Comment Found