PowerShell: How to Check if a Module is Already Installed

If you are not sure if a PowerShell module is already being installed on your device or not, then you can make use of the Get-Module cmdlet as follows,


Syntax:

Get-Module -ListAvailable -Name name-of-the-module

Example:

Get-Module -ListAvailable -Name ThreadJob

If the module is already available, you will see details about it when you press enter.

Directory: /usr/local/microsoft/powershell/7/Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Binary     2.0.3                 ThreadJob                           Desk      Start-ThreadJob

If the module is not present, you come back to the blank PowerShell prompt i.e. you will see no output.

PowerShell Check if a Module is Already Installed Example

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!