I have quite a number of client systems I need to connect to using VPNs. While there is a large number of VPNs available, it is inevitable that I would have some used by more than one client. One such as Cisco AnyConnect.
By default AnyConnect will remember only the last VPN to which you connected, but it is possible to force it to remember multiple connections by adding a Profile.xml to the profiles folder located in
C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile.
The xml file can contain a HostName and HostAddress (prior versions supported a User) which means I don’t have to look up the URL or IP address of a connection everytime I want to connect.
The XML file should contain the following:
<?xml version="1.0" encoding="UTF-8"?> <AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/"> <ServerList> <HostEntry> <HostName>Connection 1</HostName> <HostAddress>126.96.36.199</HostAddress> </HostEntry> </ServerList> <ServerList> <HostEntry> <HostName>Connection 2</HostName> <HostAddress>192.168.1.152</HostAddress> </HostEntry> </ServerList> </AnyConnectProfile>
With the connection information saved into the xml file, you’ll be able to access them through a drop down list in AnyConnect.
The information above is based on this post by Pandiyan Murugan; I’m reposting so that I can find it easily.