Skip to content

Latest commit

 

History

History
90 lines (59 loc) · 2.13 KB

Update-PSFunctionInfoDefaults.md

File metadata and controls

90 lines (59 loc) · 2.13 KB
external help file Module Name online version schema
PSFunctionInfo-help.xml
PSFunctionInfo
2.0.0

Update-PSFunctionInfoDefaults

SYNOPSIS

Refresh $PSDefaultParameterValues with PSFunctionInfo defaults.

SYNTAX

Update-PSFunctionInfoDefaults [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

You can store default values for PSFunctionInfo commands using Set-PSFunctionInfoDefaults. The data is stored in a JSON file at $home\psfunctioninfo-defaults.json. When you import the PSFunctionInfo module, this file will be imported and used to set entries in $PSDefaultParameterValues. If you modify the defaults, you can refresh your $PSDefaultParameterValues by running Update-PSFunctionInfoDefaults.

EXAMPLES

Example 1

PS C:\> Set-PSFunctionInfoDefaults -author "Gladys Kravitz"
PS C:\> Update-PSFunctionInfoDefaults

This example updates the default Author parameter value. The second command refreshes $PSDefaultParameterValues.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
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.

INPUTS

None

OUTPUTS

None

NOTES

Learn more about PowerShell: https://jdhitsolutions.com/yourls/newsletter

RELATED LINKS

Set-PSFunctionInfoDefaults

Get-PSFunctionInfoDefaults