< Back
Get-DefaultParameter
Post
NAME Get-DefaultParameter
SYNOPSIS
Gets the default parameter value for a command, if it's been set
SYNTAX
Get-DefaultParameter [[-Command] <String>] [[-Parameter] <String>] [<CommonParameters>]
DESCRIPTION
Gets 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? false
Position? 2
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
SYNOPSIS
Gets the default parameter value for a command, if it's been set
SYNTAX
Get-DefaultParameter [[-Command] <String>] [[-Parameter] <String>] [<CommonParameters>]
DESCRIPTION
Gets 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? false
Position? 2
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