choco_upgrade_all.ps1 - limehawk/rmm-scripts GitHub Wiki
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
- Checks if Chocolatey is installed
- Runs choco upgrade all with auto-confirmation
- 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
- View Script Source
- Scripts - Back to script index