Deploy Cisco AnyConnect via Intune | Win32 Guide
Cisco AnyConnect (now Cisco Secure Client) is one of the most widely deployed enterprise VPN clients. It installs from a predeploy MSI designed for silent enterprise deployment, and VPN server configuration is handled via a separate XML profile file deployed alongside the installer. This guide covers both the 4.x AnyConnect and 5.x Secure Client deployment approaches.
AnyConnect vs Cisco Secure Client
Cisco rebranded AnyConnect as Cisco Secure Client in 2023. If you are setting up a new deployment, use Cisco Secure Client 5.x. If you are managing an existing AnyConnect 4.x deployment, the packaging process is identical - the MSI filenames and switches are the same.
Download the predeploy MSI
Download from Cisco Software Downloads (requires a Cisco account with a support contract):
software.cisco.com/download → Security → VPN and Endpoint Security Clients → Cisco AnyConnect Secure Mobility Client
Download the Windows predeploy package - the filename will include predeploy-k9. This is the enterprise installer designed for silent deployment. Do not use the web deploy package as it requires a live ASA connection to install.
Wrap with the Content Prep Tool
IntuneWinAppUtil.exe -c "C:\AppSource\AnyConnect" -s "anyconnect-win-4.10.x-core-vpn-predeploy-k9.msi" -o "C:\IntunePackages"
Add the app in Intune
- Upload the .intunewin file
- Name: Cisco AnyConnect VPN
- Publisher: Cisco Systems, Inc.
Install and uninstall commands
Deploying the VPN profile
AnyConnect reads its server configuration from an XML profile file. Deploy this as a separate Intune PowerShell script or include it in your package as a wrapper:
# Deploy AnyConnect profile XML # Run after AnyConnect installs $profileDir = "C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile" New-Item -ItemType Directory -Force -Path $profileDir $profile = @""@ Set-Content -Path "$profileDir\YourOrgVPN.xml" -Value $profile vpn.yourdomain.com vpn.yourdomain.com
Detection rule
Known gotchas
VPN automatically connecting at startup
If your AnyConnect profile includes an AutoConnectOnStart setting, AnyConnect will attempt to connect to the VPN as soon as the user logs in. This is useful for always-on VPN scenarios but may surprise users on first login after deployment.
Frequently Asked Questions
Use: msiexec /i "anyconnect-win-
Cisco rebranded AnyConnect as Cisco Secure Client in 2023. AnyConnect 4.x is still widely deployed. New deployments should use Cisco Secure Client 5.x which uses the same MSI deployment method. Both support the same silent install switches.
Deploy an AnyConnect profile XML file to C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile\ alongside the MSI. The profile sets the VPN server address and authentication settings automatically.
Use a file detection rule: check for vpnui.exe in C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client. AnyConnect is a 32-bit app and always installs to the x86 path.