Support #897
Install Chocolatey on Windows 10
Description
This is the simple one-liners to download and run the Chocolatey online installer on Windows 10.
Using cmd¶
- Open a command prompt as administrator.
- Install chocolatey using the command prompt:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Using PowerShell¶
- Open a powershell session as administrator.
- Check the script execution policy:
Get-ExecutionPolicy
- If the policy is Restricted, set the execution policy to Bypass to disable the execution policy:
Set-ExecutionPolicy Bypass
- NOTE: If you a secure environment is needed set the execution policy to AllSigned:
Set-ExecutionPolicy AllSigned
- NOTE: If you a secure environment is needed set the execution policy to AllSigned:
- To install chocolatey using PowerShell:
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))