batch file to automatically connect to vpn connection

5.8k views Asked by At

I need some help with batch file. I am using windows 7. I need a batch file to:

  1. Open VPN Client on my PC, path is ("C:\Program Files (x86)\Cisco Systems\VPN Client\vpngui.exe)

  2. There are 5 VPNs in the list. Connect to vpn name (AA_VPN) using my username and password

A window pop ups when I connect - that is 'continue or discontinue' 3. The process should press 'continue' button or spacebar key (all works)

  1. And then the batch file should close itself.

Thanks.

1

There are 1 answers

0
MC ND On

From documentation:

"C:\Program Files (x86)\Cisco Systems\VPN Client\vpnclient" connect AA_VPN user <yourUser> pwd <yourPassword>