SwitchHunt / catalog
AWS CLI v2 - Silent Install Switch
The hand-curated silent install command for AWS CLI v2 on Windows, plus its silent uninstall command - for unattended, quiet, fleet-wide deploys. Copy, paste, ship - smoke-test in a throwaway VM first.
Silent install command
msiexec /i "installer.msi" /qn Silent uninstall command
msiexec /x "installer.msi" /qn Replace installer.msi with the actual installer filename (or its full path).
Notes & gotchas
Use AWSCLIV2.msi. AWSCLIV2-User.msi is the per-user build, and AWS's newer install.ps1 is per-user too unless you pass -System. PATH changes only reach new shells.
Lab-tested
On 2026-10-12 we ran the install command above as SYSTEM (how deployment tools run it) on a Windows 11 VM against AWS CLI v2 2.37.12, and confirmed the app showed up in Add/Remove Programs - not just that the installer exited 0. The uninstall command above then removed it. Vendors change installers between versions, so smoke-test a new one before you ship it fleet-wide.
Detection path
A file whose presence proves AWS CLI v2 is installed - handy as an Intune / RMM detection rule:
C:\Program Files\Amazon\AWSCLIV2\aws.exe FAQ
What is the silent install command for AWS CLI v2?
Run: msiexec /i "installer.msi" /qn
How do I silently uninstall AWS CLI v2?
Run: msiexec /x "installer.msi" /qn
Any gotchas installing AWS CLI v2 unattended?
Use AWSCLIV2.msi. AWSCLIV2-User.msi is the per-user build, and AWS's newer install.ps1 is per-user too unless you pass -System. PATH changes only reach new shells.
Got a different installer, or one that isn't in this list? Drop it into SwitchHunt and it reads the silent switches right in your browser, nothing uploaded.