UpdateInstalledModule

1.0

Updates a module from the Powershell Gallery if a newer version is available. Wraps the PowerShellGet function Update-Module and is much faster.
This module exports 2 functions: Get-PublishedModuleVersion and Update-InstalledModule.
Get-PublishedModuleVersion checks the most recent version of a module in the Powershell gallery. It is based on ideas from Tobias Weltn
Updates a module from the Powershell Gallery if a newer version is available. Wraps the PowerShellGet function Update-Module and is much faster.
This module exports 2 functions: Get-PublishedModuleVersion and Update-InstalledModule.
Get-PublishedModuleVersion checks the most recent version of a module in the Powershell gallery. It is based on ideas from Tobias Weltner (powertheshell.com) and scriptingfee.de
Update-InstalledModule uses this version check to prepare a list of modules that are outdated. This list then is passed on to the original Update-Module function. If there are no outdated modules found, Update-Module is not called at all.
The fast check for outdated versions makes it easy to include an update check in your profile script. Simply add the following two lines to your profile:
Try { Import-Module -Name UpdateInstalledModule; Update-InstalledModule -Name <Module Names you want to automatically check and update> }
Catch { $_ }

Minimum PowerShell version

5.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name UpdateInstalledModule -RequiredVersion 1.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Martin Binder

Copyright

(c) 2016 Martin Binder. All rights reserved.

Version History

Version Downloads Last updated
1.1 850 7/14/2020
1.0 (current version) 1,510 11/7/2016