Tuesday, August 16, 2011

Cisco VPN auto logon

How to automate connecting to a Cisco VPN.

Option one DOS batch file: 
"c:\Program Files (x86)\Cisco Systems\VPN Client\vpnclient.exe" connect "NewCo VPN" user "rcasady" pwd "ParisHilton"

If you don’t want to keep your password in a batch file you can prompt the user for the password like below
SET /P PSWD=[Enter your Password]
"c:\Program Files (x86)\Cisco Systems\VPN Client\vpnclient.exe" connect "NewCo VPN" user "rcasady" pwd %PSWD%

Another option is to change the Cisco VPN options to connect on application open and put the “vpnclient.exe” in startup list, this will cause the credential screen to popup after you login.

I prefer to use the batch file because you can use it each time you lose VPN connection witch happens to me alot.
Post a Comment