Project

General

Profile

Support #897

Install Chocolatey on Windows 10

Added by Daniel Curtis over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installation
Target version:
Start date:
05/28/2017
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

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
      
  • To install chocolatey using PowerShell:
    iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    

Resources

Also available in: Atom PDF