Skip to content

TrisBits/Update-AllModules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.