Skip to content

Instantly share code, notes, and snippets.

@jghorton14
Created October 11, 2021 19:00
Show Gist options
  • Save jghorton14/3387f8940d52527be4fe587a02224788 to your computer and use it in GitHub Desktop.
Save jghorton14/3387f8940d52527be4fe587a02224788 to your computer and use it in GitHub Desktop.
Desktop Shortcut to Update all Choco Packages
# Create a desktop shortcut with path:
# C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File C:\Users\{user}\Documents\scripts\update-all.ps1
$var = 'choco upgrade all -y'
Start-Process -Verb RunAs cmd.exe -Args '/c', $var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment