Although the documentation says that any profiles stored in the "%~dp0Profiles" folder will auto-install, we've found this to be incorrect, and are copying them via the script into the proper location.
This script is only for the "Cisco AnyConnect Secure Mobility Client" and also includes the Windows 8.x fix via registry key.
===== BEGIN Cisco VPN Fix for Win 8-32.reg =====
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CVirtA]
"DisplayName"="Cisco Systems VPN Adapter”
===== END Cisco VPN Fix for Win 8-32.reg =====
===== BEGIN Cisco VPN Fix for Win 8-64.reg =====
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CVirtA]
"DisplayName"="Cisco Systems VPN Adapter for 64-bit Windows"
===== END Cisco VPN Fix for Win 8-64.reg =====
@ECHO OFF
TITLE CISCO AnyConnect 3.1.05170
CLS
ECHO.
ECHO Installing Applications: %time:~0,-6%
ECHO ==============================
ECHO + AnyConnect for Windows
MSIEXEC /I "%~dp0anyconnect-win-3.1.05170-pre-deploy-k9.msi" /q ALLUSERS=1 /NORESTART /l* "C:\AnyConnect.txt"
SET AppEL=%errorlevel%
If EXIST "C:\Program Files (x86)\" (
regedit /s "%~dp0Cisco VPN Fix for Win 8-64.reg"
) ELSE (
regedit /s "%~dp0Cisco VPN Fix for Win 8-32.reg"
)
ECHO.
ECHO Adding Profiles: %time:~0,-6%
ECHO ======================
MD "%ProgramData%\Cisco\Cisco AnyConnect Secure Mobility Client\Profile"
COPY "%~dp0Profiles\*.*" "%ProgramData%\Cisco\Cisco AnyConnect Secure Mobility Client\Profile\" /Y
ECHO.
ECHO Updating Start Folder: %time:~0,-6%
ECHO ============================
COPY "%~dp0Cisco AnyConnect Secure Mobility Client.lnk" "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup\" /Y
View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.