Automatically Updating Modules

by May 2, 2016

Modules installed via PowerShellGet can be updated automatically to the latest version. You would need to run PowerShell with full Administrator privileges to update modules that were installed for all users. Please take the following code just as an example and inspiration. In production environments, you should add more logic to better control what you are updating, and whether it is safe.

 
PS> Get-InstalledModule | Update-Module

Twitter This Tip! ReTweet this Tip!