Get-InstalledModule | Taking on PowerShell one cmdlet at a time | Weekly Blog

Share this post:

This is a part of an on-going blog series written by Adam Gordon. Each week, Adam will walk you through a PowerShell command, showing you when and how to use each one. This week, Adam covers Get-InstalledModule.

When to user Get-InstalledModule?

The Get-InstalledModule cmdlet gets PowerShell modules that are installed on a computer using PowerShellGet. To see all modules installed on the system, use the Get-Module -ListAvailable command.

What version of PowerShell am I using for this blog?

Get the PowerShell Version from your machine:

$PSVersionTable

This command shows you the PowerShell version information on your machine.

How to Use Get-InstalledModule?

Get all installed modules:

Get-InstalledModule

This command gets all installed modules.

Get specific versions of a module:

Get-InstalledModule -Name “AzureRM.Profile” -MinimumVersion 1.0 -MaximumVersion 5.0

This command gets versions of the AzureRM.Profile module from version 1.0 through version 5.0.

Learn last week’s command: Get-Module.

Need PowerShell training? Check out ITProTV’s PowerShell online IT training courses.

Leave a Reply

Your email address will not be published. Required fields are marked *