Installing Chocolatey using Windows PowerShell

The following steps outline the process to install the Chocolatey tool using Windows PowerShell:

  1. Open Windows PowerShell and run as Administrator.

    With PowerShell, please ensure that Get-ExecutionPolicy is not Restricted. Using Bypass is recommended to bypass the policy to get things installed, or AllSigned for more security.

    Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.

  2. Copy the following command and paste into PowerShell:
    Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

  3. Wait a few seconds for the command to complete.
  4. For more information, please visit https://chocolatey.org/install.