Checks for all installed modules and updates them to the most current version. The older versions are then uninstalled.
Must be executed with elevated priviledges to update modules for all users. Will set the PowerShell Gallery as a trusted repository, when run with elevated priviledges.
Executing the following, will update all currently installed modules.
.\Update-AllModules.ps1
Will provide Verbose messaging during execution.
.\Update-AllModules -Verbose
If you've downloaded the PowerShell script (or any other) and recieve a "not digitally signed" error due to your execution policy.
A simple solution is to execute the PowerShell command Unblock-File -Path <ScriptPath>
Copyright (c) TrisBits. All rights reserved.
Licensed under the MIT license.