Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.32 KB

README.md

File metadata and controls

45 lines (28 loc) · 1.32 KB

Update-AllModules

PSScriptAnalyzer

Description

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.

Example

Executing the following, will update all currently installed modules.

.\Update-AllModules.ps1

Will provide Verbose messaging during execution.

.\Update-AllModules -Verbose

Notes

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>

License

Copyright (c) TrisBits. All rights reserved.

Licensed under the MIT license.