https://communities.cisco.com/docs/DOC-30977
https://communities.cisco.com/community/partner/security
Wednesday, 20 June 2018
Thursday, 7 June 2018
How to save anyconnect client connections
C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile
Make a file customer.xml
<?xml version="1.0" encoding="UTF-8"?>
<AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/">;
<ServerList>
<HostEntry>
<HostName>CUSTOMER-100.200.300.10</HostName>
<HostAddress>100.200.300.10</HostAddress>
</HostEntry>
</ServerList>
</AnyConnectProfile>
See also
https://www.tunnelsup.com/locating-the-cisco-anyconnect-profiles/
Quick Powershell script to create them as you need
Make a file customer.xml
<?xml version="1.0" encoding="UTF-8"?>
<AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/">;
<ServerList>
<HostEntry>
<HostName>CUSTOMER-100.200.300.10</HostName>
<HostAddress>100.200.300.10</HostAddress>
</HostEntry>
</ServerList>
</AnyConnectProfile>
See also
https://www.tunnelsup.com/locating-the-cisco-anyconnect-profiles/
Quick Powershell script to create them as you need
Write-Host 'Must be run as administrator so it can create the file'
Write-Host 'C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile'
$DisplayName = Read-Host Prompt 'Enter customer diplay name (eg CUST)'
$XML = Read-Host Prompt 'Enter xml file name (eg cust.xml)'
$Peer = Read-Host Prompt 'Enter anyconnect IP or URL (eg 100.10.10.1)'
$FileName = "C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile\" + $XML
$FileText = @"
<?xml version="1.0" encoding="UTF-8"?>
<AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/">;
<ServerList>
<HostEntry>
<HostName>$($DisplayName)</HostName>
<HostAddress>$($Peer)</HostAddress>
</HostEntry>
</ServerList>
</AnyConnectProfile>
"@
$FileText | Out-File -FilePath $FileName -Encoding utf8
Subscribe to:
Posts (Atom)