Chocolatey


Chocolatey is a packet manager for Windows. I find it useful for automating installations. Here are the steps to install Chocolatey itself:

All scipts here are powershell scripts

First, you need to determine how your ExecutionPolicy is set. To do this, run the following command:

Get-ExecutionPolicy

If the result is Restricted, you need to change the policy with the following command:

Set-ExecutionPolicy Bypass -Scope Process

This, according to my understanding, only applies to the running process (the running PowerShell?). If you want to change the policy in general, you can do this with the following command:

Set-ExecutionPolicy Bypass -Scope LocalMachine

The actual installation of Chocolatey starts with the command:

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'))

Source:

🔗https://chocolatey.org/install