Created
October 11, 2021 19:00
-
-
Save jghorton14/3387f8940d52527be4fe587a02224788 to your computer and use it in GitHub Desktop.
Desktop Shortcut to Update all Choco Packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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