Cisco AnyConnect is a unified security endpoint agent that delivers multiple security services to protect the enterprise. It also provides the visibility and the control you need to identify who and which devices are accessing the extended enterprise. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of the Cisco AnyConnect Secure Mobility Client from the command line using the MSI installer.
How to Install Cisco AnyConnect Silently
Cisco AnyConnect Secure Mobility Client Silent Install (MSI)
- Navigate to: https://www.cisco.com/c/en/us/support/security/anyconnect-secure-mobility-client-v4-x/model.html#~tab-downloads
- Select Download Options
- Select the AnyConnect Pre-Deployment Package (Windows) option
- Download the anyconnect-win-x.xx.xxxxx-predeploy-k9.zip to a folder created at (C:\Downloads)
- Extract the anyconnect-win-x.xx.xxxxx-predeploy-k9.zip using 7-Zip to C:\Downloads\AnyConnect
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads\AnyConnect folder
- Enter the following command:
- MsiExec.exe /i anyconnect-win-x.xx.xxxxx-predeploy-k9.msi /qn
- Press Enter
After a few moments you will find Cisco AnyConnect entries in the Start Menu, Installation Directory and Programs and Features in the Control Panel.
Software Title: | Cisco AnyConnect Secure Mobility Client |
Vendor: | Cisco Systems, Inc. |
Architecture: | x86_x64 |
Installer Type: | MSI |
Silent Install Switch: | MsiExec.exe /i anyconnect-win-x.xx.xxxxx-predeploy-k9.msi /qn |
Silent Uninstall Switch: | MsiExec.exe /x anyconnect-win-x.xx.xxxxx-predeploy-k9.msi /qn |
Repair Command: | MsiExec.exe /fa anyconnect-win-x.xx.xxxxx-predeploy-k9.msi /qn |
Download Link: | https://www.cisco.com/c/en/us/support/security/anyconnect-secure-mobility-client-v4-x/model.html#~tab-downloads |
PowerShell Script: | https://silentinstallhq.com/cisco-anyconnect-secure-mobility-client-install-and-uninstall-powershell/ |
Detection Script: | https://silentinstallhq.com/create-a-custom-detection-script-for-cisco-anyconnect-powershell/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Create a Cisco AnyConnect Installation Log File
The Cisco AnyConnect installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.
Cisco AnyConnect Secure Mobility Client Silent Install (MSI) with Logging
MsiExec.exe /i anyconnect-win-x.xx.xxxxx-predeploy-k9.msi /qn /L*v "%WINDIR%\Temp\CiscoAnyConnect-Install.log" |
How to Uninstall Cisco AnyConnect Secure Mobility Client Silently
Check out the Cisco AnyConnect Secure Mobility Client Install and Uninstall (PowerShell) post for a scripted solution.
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter the following command:
Cisco AnyConnect Secure Mobility Client Silent Uninstall (MSI)
MsiExec.exe /x anyconnect-win-x.xx.xxxxx-predeploy-k9.msi /qn |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.