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-ExecutionPolicyis not Restricted. It’s better to useBypassto bypass the policy to get things installed orAllSignedfor quite a bit more security.- Run
Get-ExecutionPolicy. If it returns Restricted, then runSet-ExecutionPolicy AllSignedorSet-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
chocoorchoco -?
