< Back

Set-DefaultParameter

Mon Jan 13, 2020 6:32 pm

NAME Set-DefaultParameter



SYNOPSIS

Sets a default parameter value for a command





SYNTAX

Set-DefaultParameter [-Command] <Object> [-Parameter] <String> [-Value] <Object> [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION

Safely sets the default parameter value for a command, making sure that you've correctly typed the command and

parameter combination





PARAMETERS

-Command <Object>

The command that you want to change the default value of a parameter for



Required? true

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



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Value <Object>

The new default parameter value



Required? true

Position? 3

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