🛠️ Step-by-Step: Install Chocolatey on Windows

🛠 Prerequisites

  • Windows 7+ / Windows Server 2012+
  • PowerShell (run as Administrator)
  • Internet connection

🔹 Step 1: Open PowerShell as Administrator

  • Press Start → Search "PowerShell"
  • Right-click → Run as administrator

🔹 Step 2: Run the Chocolatey Installation Script

Copy and paste the following command into PowerShell:

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

⚠️ Make sure PowerShell is running as administrator — otherwise it will fail.


🔹 Step 3: Verify Chocolatey Installation

After installation, close and reopen PowerShell or Command Prompt. Then check:

choco --version

✅ You should see something like 1.4.0 or the latest version.


🎯 Done!

Comments

Popular posts from this blog

✅ Best Practices for Azure Container Registry (ACR)

✅ Best Practices for Implementing CI/CD in Your DevOps Workflow

✅ Best Practices for Azure Kubernetes Service (AKS)