< Back
Get-InstalledModule
Post
NAME Get-InstalledModule
SYNOPSIS
Gets installed modules on a computer.
SYNTAX
Get-InstalledModule [[-Name] <String[]>] [-AllVersions] [-MaximumVersion <Version>] [-MinimumVersion <Version>] [-RequiredVersion <Version>]
[<CommonParameters>]
DESCRIPTION
The Get-InstalledModule cmdlet gets Windows PowerShell modules that are installed on a computer.
PARAMETERS
-AllVersions [<SwitchParameter>]
Indicates that you want to get all available versions of a module. You cannot use the AllVersions parameter with the MinimumVersion , MaximumVersion
, or RequiredVersion parameters.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-MaximumVersion <Version>
Specifies the maximum, or newest, version of a module to get. The MaximumVersion and RequiredVersion parameters are mutually exclusive; you cannot
use both parameters in the same command.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-MinimumVersion <Version>
Specifies the minimum version of a single module to get. The MinimumVersion and RequiredVersion parameters are mutually exclusive; you cannot use
both parameters in the same command.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String[]>
Specifies an array of names of modules to get.
Required? false
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-RequiredVersion <Version>
Specifies the exact version of a module to get.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Example 1: Get all installed modules
PS C:\\>Get-InstalledModule
Version Name Type Repository Description
------- ---- ---- ---------- -----------
2.0.0 PSGTEST-UploadMultipleVersionOfP... Module GalleryINT Module for DAC functionality
1.3.5 AzureAutomationDebug Module PSGallery Module for debugging Azure Automation runbooks, emulating AA native
cmdlets
1.0.1 AzureRM.Automation Module PSGallery Microsoft Azure PowerShell - Automation service cmdlets for Azure
Resource Manager
This command gets all installed modules.
Example 2: Get specific versions of a module
PS C:\\>Get-InstalledModule -Name "AzureRM.Automation" -MinimumVersion 1.0 -MaximumVersion 2.0
Version Name Type Repository Description
------- ---- ---- ---------- -----------
1.0.1 AzureRM.Automation Module PSGallery Microsoft Azure PowerShell - Automation service cmdlets for Azure
Resource Manager
This command gets versions of the AzureRM.Automation module from version 1.0 through version 2.0.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=821660
SYNOPSIS
Gets installed modules on a computer.
SYNTAX
Get-InstalledModule [[-Name] <String[]>] [-AllVersions] [-MaximumVersion <Version>] [-MinimumVersion <Version>] [-RequiredVersion <Version>]
[<CommonParameters>]
DESCRIPTION
The Get-InstalledModule cmdlet gets Windows PowerShell modules that are installed on a computer.
PARAMETERS
-AllVersions [<SwitchParameter>]
Indicates that you want to get all available versions of a module. You cannot use the AllVersions parameter with the MinimumVersion , MaximumVersion
, or RequiredVersion parameters.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-MaximumVersion <Version>
Specifies the maximum, or newest, version of a module to get. The MaximumVersion and RequiredVersion parameters are mutually exclusive; you cannot
use both parameters in the same command.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-MinimumVersion <Version>
Specifies the minimum version of a single module to get. The MinimumVersion and RequiredVersion parameters are mutually exclusive; you cannot use
both parameters in the same command.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String[]>
Specifies an array of names of modules to get.
Required? false
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-RequiredVersion <Version>
Specifies the exact version of a module to get.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Example 1: Get all installed modules
PS C:\\>Get-InstalledModule
Version Name Type Repository Description
------- ---- ---- ---------- -----------
2.0.0 PSGTEST-UploadMultipleVersionOfP... Module GalleryINT Module for DAC functionality
1.3.5 AzureAutomationDebug Module PSGallery Module for debugging Azure Automation runbooks, emulating AA native
cmdlets
1.0.1 AzureRM.Automation Module PSGallery Microsoft Azure PowerShell - Automation service cmdlets for Azure
Resource Manager
This command gets all installed modules.
Example 2: Get specific versions of a module
PS C:\\>Get-InstalledModule -Name "AzureRM.Automation" -MinimumVersion 1.0 -MaximumVersion 2.0
Version Name Type Repository Description
------- ---- ---- ---------- -----------
1.0.1 AzureRM.Automation Module PSGallery Microsoft Azure PowerShell - Automation service cmdlets for Azure
Resource Manager
This command gets versions of the AzureRM.Automation module from version 1.0 through version 2.0.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=821660