Update-PSDefaultParameter
SYNOPSIS
Updates the $PSDefaultParameterValues variable
SYNTAX
Update-PSDefaultParameter [[-Function] <String>] [[-Parameter] <String>] [[-value] <String>] [-WriteToProfile]
[<CommonParameters>]
DESCRIPTION
Updates the $PSDefaultParameterValues variable, and saves it to your profile.
EXAMPLES
EXAMPLE 1
Update-PSDefaultParameter -Function Connect-VMWareCluster -Parameter vCenterIp -value '192.168.x.x' -WriteToProfile
PARAMETERS
-Function
The function name to add, you can also add wildcards.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Parameter
The Parameter in that function to add.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-value
Value of the parameter
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WriteToProfile
Also write the result to your profile.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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.