Skip to content

choco_upgrade_all.ps1

Corey Watson edited this page Dec 1, 2025 · 1 revision

choco_upgrade_all.ps1

Upgrades all Chocolatey-managed packages to their latest versions.

Overview

This script checks for Chocolatey installation and upgrades all managed packages to their latest versions using auto-confirmation.

Purpose

Upgrades all Chocolatey-managed packages to their latest versions.

Prerequisites

  • Windows OS
  • Administrator privileges
  • Chocolatey package manager installed

Configuration

Required Inputs

None

Behavior

  1. Checks if Chocolatey is installed
  2. Runs choco upgrade all with auto-confirmation
  3. Reports final status

Security Notes

  • No secrets in logs

Exit Codes

  • 0 = Success
  • 1 = Failure (Chocolatey not installed)

Example Output

[ CHOCOLATEY CHECK ]
--------------------------------------------------------------
Checking for Chocolatey...
Chocolatey is installed

[ UPGRADE ]
--------------------------------------------------------------
Upgrading all Chocolatey packages...
[Chocolatey output...]
Upgrade completed

[ FINAL STATUS ]
--------------------------------------------------------------
Result : SUCCESS
All packages upgraded

[ SCRIPT COMPLETED ]
--------------------------------------------------------------

Version History

  • 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps

Links

Clone this wiki locally