Repository navigation
Get ModuleLocation
Shows where modules are installed on disk.
Get-ModuleLocation [[-Name] <String[]>] [-Scope <String[]>] [-Summary] [-IncludeSize] [-IncludeSystem]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
By default returns one object per installed module version, with its scope, the folder it lives in and the PSModulePath entry that contains it.
With -Summary, returns one object per PSModulePath entry in search order, with the number of modules and versions in each. Use -IncludeSize to add disk usage.
Get-ModuleLocation Pester
Lists every installed Pester version and where it is.
Get-ModuleLocation -Summary -IncludeSize
Shows how many modules and versions are in each PSModulePath location, and the disk space they use.
Get-ModuleInventory | Where-Object { ($_.Installations.ModuleRoot | Select-Object -Unique).Count -gt 1 }
Finds modules installed in more than one PSModulePath location.
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 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: FalseSummarise by PSModulePath entry instead of listing each module version.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseCalculate the size on disk of each module version (or each path, with -Summary). This reads every file, so it can be slow.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseInclude modules that ship with PowerShell or Windows. -Summary always includes them.
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).