Skip to content

kieranwalsh/Update-AllPSModules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Update-InstalledModule

Updates all locally installed PowerShell modules to the latest versions available on PSGallery.

Features

  • Automatically updates PackageManagement and PowerShellGet prerequisites before processing other modules.
  • Installs to CurrentUser scope by default — no admin required.
  • Optional -AllUsers switch for system-wide installs (requires elevation).
  • Displays a formatted list of all modules with current vs. available versions.
  • Falls back to uninstall/reinstall if a standard update fails.
  • Excludes the Az and Microsoft.Graph meta-modules (to avoid reinstalling all submodules). Individual submodules (e.g., Az.Accounts, Microsoft.Graph.Users) are updated individually.

Installation

Install-Module -Name 'Update-InstalledModule'

Usage

# Update all modules (CurrentUser scope)
Update-InstalledModule

# Update all modules (AllUsers scope, requires admin)
Update-InstalledModule -AllUsers

Sample Output

Image of Update-InstalledModule sample

Gif of Update-InstalledModule in action

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors