< Back

Remove-DefaultParameter

Mon Jan 13, 2020 6:32 pm

NAME Remove-DefaultParameter



SYNOPSIS

Removed the default parameter value for a command, if it's been set





SYNTAX

Remove-DefaultParameter [[-Command] <String>] [-Parameter] <String> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Removes the default parameter value for a command from $PSDefaultParameterValues





PARAMETERS

-Command <String>

The command that you want to change the default value of a parameter for (allows wildcards)



Required? false

Position? 1

Default value *

Accept pipeline input? false

Accept wildcard characters? false



-Parameter <String>

The name of the parameter that you want to change the default value for (allows wildcards)



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS