Install Chocolatey on Windows
Refer to this page for more information.
- First, ensure that you are using an administrative shell.
- Install with powershell.exe
- With PowerShell, you must ensure
Get-ExecutionPolicy
is not Restricted. It’s better to useBypass
to bypass the policy to get things installed orAllSigned
for quite a bit more security.- Run
Get-ExecutionPolicy
. If it returns Restricted, then runSet-ExecutionPolicy AllSigned
orSet-ExecutionPolicy Bypass -Scope Process
.
- Run
- Now run this command in 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://chocolatey.org/install.ps1'))
- Wait a few seconds for the command to complete. If you don’t see any errors, you are ready to use Chocolatey! Type
choco
orchoco -?