Chocolatey is a packet manager for Windows. I find it useful for using scripts for installations. This is about installing chocolatey itself
All scripts noted here are Powershell scripts
First you have to find out what the setting of ExecutionPolicy
is on your system. Issue the
following command to do so:
Get-ExecutionPolicy
If the result is Restricted
, you have to change the policy with this command:
Set-ExecutionPolicy Bypass -Scope Process
As far as I understand, this only applies to the process (PowerShell?) currently running. If you want to change the policy generally, you can do so with the following command:
Set-ExecutionPolicy Bypass -Scope LocalMachine
To start the installation of chocolatey itself, run:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))