Installation

Run powershell as admin

# Set the execution policy for the current process to Bypass
Set-ExecutionPolicy Bypass -Scope Process -Force
 
# Ensure that the security protocol supports TLS 1.2 and higher
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12
 
# Download and execute the Chocolatey installation script
$chocolateyInstallUrl = 'https://community.chocolatey.org/install.ps1'
$webClient = New-Object System.Net.WebClient
$scriptContent = $webClient.DownloadString($chocolateyInstallUrl)
 
# Run script
Invoke-Expression $scriptContent

Usage

Run powershell as admin

# Updating
choco upgrade chocolatey -y
# Find packages
choco find chocolatey --by-id-only

Appendix