Project

General

Profile

Support #897

Updated by Daniel Curtis over 7 years ago

This is the simple one-liners to download and run the Chocolatey online installer on Windows 10. 

 h2. Using cmd 

 * Open a command prompt as *administrator*. 

 * Install To install chocolatey using the command prompt: 
 <pre> 
 @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" 
 </pre> 

 h2. Using PowerShell 

 * Open a powershell session as *administrator*. 

 * Check the script execution policy: 
 <pre> 
 Get-ExecutionPolicy 
 </pre> 

 * If the policy is +Restricted+, set the execution policy to Bypass to disable the execution policy: 
 <pre> 
 Set-ExecutionPolicy Bypass 
 </pre> 
 #* NOTE: If you a secure environment is needed set the execution policy to AllSigned: 
 <pre> 
 Set-ExecutionPolicy AllSigned 
 </pre> 

 * To install chocolatey using PowerShell: 
 <pre> 
 iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) 
 </pre> 

 h2. Resources 

 * https://chocolatey.org/install 
 * https://chocolatey.org/install.ps1

Back