Repair-EnvironmentPath¶
SYNOPSIS¶
Repair the PATH environment variable.
SYNTAX¶
__AllParameterSets¶
Repair-EnvironmentPath [[-Scope] <string>] [-Force] [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Repair the PATH environment variable. This command will remove any invalid paths and normalize the path separators.
EXAMPLES¶
EXAMPLE 1¶
Repair-EnvironmentPath -Scope CurrentUser
Repair the PATH environment variable for the current user.
EXAMPLE 2¶
Repair-EnvironmentPath -Scope AllUsers
Repair the PATH environment variable for all users.
EXAMPLE 3¶
Repair-EnvironmentPath -Scope CurrentUser -Force
Repair the PATH environment variable for the current user. Any invalid paths will be removed.
EXAMPLE 4¶
Repair-EnvironmentPath -Scope AllUsers -Force
Repair the PATH environment variable for all users. Any invalid paths will be removed.
PARAMETERS¶
-Force¶
Remove any invalid paths.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Scope¶
The scope of the environment variable.
Type: System.String
DefaultValue: CurrentUser
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
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¶
NOTES¶
General notes
RELATED LINKS¶
{{ Fill in the related links here }}