How to install AWS CLI 2 on Windows 11 using PowerShell

If you want to install AWS CLI 2 on your Windows 11 PC using PowerShell, you can follow the below steps.

  1. Open PowerShell on your Windows.
  2. Download AWS CLI 2 and run the below cmdlet command.
    Invoke-WebRequest -Uri https://awscli.amazonaws.com/AWSCLIV2.msi -OutFile AWSCLIV2.msi
    Logs:
    Writing web request
    Writing request stream... (Number of bytes written: 19774898)
  3. Next to install the setup, run the command,
    Start-Process -Wait -FilePath .\AWSCLIV2.msi
    
  4. Finally to check the CLI was installed correctly, run the version command.
    PS C:\Users\Sam> aws --version
    
    aws-cli/2.13.22 Python/3.11.5 Windows/10 exe/AMD64 prompt/off
Install AWS CLI 2 using PowerShell Command
Welcome to the AWS Command Line Interface v2 Setup Wizard

If you want to perform a silent installation, you can run the command as follows.

Start-Process -Wait -FilePath msiexec.exe -ArgumentList '/i .\AWSCLIV2.msi /qn'

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!