Invoke-PruneModule¶
SYNOPSIS¶
Remove all but the newest version of a module
SYNTAX¶
__AllParameterSets¶
Invoke-PruneModule [[-Name] <string[]>] [[-Scope] <string[]>] [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Remove all but the newest version of a module
EXAMPLES¶
EXAMPLE 1¶
Invoke-PruneModule -Name 'Az.*' -Scope CurrentUser
PARAMETERS¶
-Name¶
Name of the module(s) to prune
Type: System.String[]
DefaultValue: '*'
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Scope¶
Scope of the module(s) to prune
Type: System.String[]
DefaultValue: CurrentUser
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
OUTPUTS¶
System.Void¶
{{ Fill in the Description }}
NOTES¶
RELATED LINKS¶
{{ Fill in the related links here }}