Created
June 2, 2023 21:25
-
-
Save Rugby-Ball/416da1d58ee8fc4df5408e9eb34f59c6 to your computer and use it in GitHub Desktop.
Update all PowerShell Modules with a Function added to your $PROFILE #Public #Utility #Maintenance #Snippet #Powershell #Windows #Function
This file contains hidden or 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
| <# Add this to your $Profile | |
| To edit, from inside cli or ISE type: notepad $Profile | |
| If its not created then create it. | |
| The add below and save. | |
| Now to update all your Modules you type the function name, upgrade | |
| #> | |
| #Used to update Modules | |
| Function upgrade { | |
| $upgrade = (invoke-webrequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/itpro-tips/PowerShell-Toolbox/master/Update-AllPowerShellModules.ps1").Content | |
| Invoke-Expression -command $upgrade | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment