Invoke-ReinstallModule¶
SYNOPSIS¶
Reinstalls module into a given scope.
SYNTAX¶
Invoke-ReinstallModule [[-Name] <String[]>] [[-Scope] <String[]>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
DESCRIPTION¶
Reinstalls module into a given scope. This is useful when you want to reinstall or clean up your module versions. With this command you always get the newest available version of the module and all the previous version wiped out.
EXAMPLES¶
EXAMPLE 1¶
Reinstall-Module -Name Pester -Scope CurrentUser
Reinstall Pester module for the current user.
EXAMPLE 2¶
Reinstall-Module -Scope CurrentUser
Reinstall all reinstallable modules into the current user.
PARAMETERS¶
-Name¶
The name of the module to be reinstalled. Wildcards are supported.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: *
Accept pipeline input: False
Accept wildcard characters: True
-Scope¶
The scope of the module to will be reinstalled to.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: CurrentUser
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.