Skip to content

Instantly share code, notes, and snippets.

@Rugby-Ball
Created June 2, 2023 21:25
Show Gist options
  • Select an option

  • Save Rugby-Ball/416da1d58ee8fc4df5408e9eb34f59c6 to your computer and use it in GitHub Desktop.

Select an option

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
<# 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