Repository navigation
Get ModuleInventory
Lists the PowerShell modules installed on this machine, one row per module.
Get-ModuleInventory [[-Name] <String[]>] [-Scope <String[]>] [-IncludeSystem] [-MultipleVersions]
[-AllVersions] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Scans every folder on $env:PSModulePath and summarises each module: the newest installed version, every other installed version, the scope it is installed in, the repository it came from and whether it is loaded in the current session.
The scan reads folders and manifests directly, so it is much faster than Get-Module -ListAvailable.
Modules that ship with PowerShell or Windows (scope 'System') are hidden unless -IncludeSystem or -Scope System is used.
Get-ModuleInventory
Lists all user-installed modules.
Get-ModuleInventory -MultipleVersions | Sort-Object VersionCount -Descending
Shows which modules have accumulated the most old versions.
Get-ModuleInventory Az.* -AllVersions
Lists every installed version of the Az modules, one row per version.
One or more module names. Wildcards are supported.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: *
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: TrueOnly include installations in these scopes: CurrentUser, AllUsers, System, Other.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseInclude modules that ship with PowerShell or Windows.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseOnly return modules that have more than one version installed.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseReturn one object per installed version instead of one per module.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{Fill ProgressAction Description}}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).