Scripting Cisco VPN connection

The other day I had a computer that needed to automatically connect a VPN tunner on startup. Apparenty the Cisco VPN Client 4.6 and later has a Command-Line Interface so this can be done using this line in a batch-file.

         start /wait vpnclient.exe connect VPN-Profile user username pwd password

It has a couple of other CLI-Switches:

         Cisco Systems VPN Client Version
         Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved.
         Client Type(s): Windows, WinNT
         Running on: 5.1.2600 Service Pack 2
         Config file directory: C:Program FilesCisco SystemsVPN Client

          vpnclient connect <profile> [user <username>] [eraseuserpwd | pwd <password>]
                                      [nocertpwd] [cliauth] [stdin] [sd]
          vpnclient disconnect
          vpnclient stat [reset] [traffic] [tunnel] [route] [firewall] [repeat]
          vpnclient notify
          vpnclient verify [autoinitconfig]
          vpnclient suspendfw
          vpnclient resumefw

Leave a Reply

%d bloggers like this: