Skip to content
Kieran Walsh edited this page Apr 23, 2022 · 1 revision

Welcome to the Update-AllPSModules wiki!

FAQ:

  1. Why are these modules excluded?

image

'PackageManagement' and 'PowerShellGet' are used to install and update modules from online sources.

If 'PackageManagement' is not a recent version the script will update it, but the PowerShell session needs to be closed and re-opened to use it. That's why it's excluded from the 'normal' module updates loops.

'PowerShellGet' needs to be at level '1.6.0' before it has the 'AllowPrerelease' switch, so if the installation is a lower version the script needs to update and the PowerShell session has to be closed and re-opened.

'Az.', 'AzureRM.', 'Azure.' - I exclude these "sub-modules", for want of a better expression, as there can be many of them and updating so many takes ages:

image

I prefer to just update the parent, i.e. "AZ", and the "sub-modules" get updated at the same time:

image

Clone this wiki locally