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 4.7.00.0533
         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

         Usage:
          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

Comments

Leave a Reply

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)