Export-PSCalendarConfiguration

March 30, 2025 ยท View on GitHub

SYNOPSIS

Save the current calendar configuration settings to a file.

SYNTAX

Export-PSCalendarConfiguration [-Passthru] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

If you have customized the calendar configuration settings, and which to alway use them, use this command to export the settings to a JSON file in HOME.Thenexttimeyouimportthemodule,thesettingswillbeautomaticallyimported.Ifyouwanttoreverttothedefaultsettings,deletetheJSONfile,HOME. The next time you import the module, the settings will be automatically imported. If you want to revert to the default settings, delete the JSON file, HOME\PSCalendarConfiguration.json. If you uninstall the module, you will need to manually delete the JSON file.

This command was added in module version 2.10.0

EXAMPLES

Example 1

PS C:\> Export-PSCalendarConfiguration

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

-Passthru

Show the configuration settings file.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

System.Io.FileInfo

NOTES

This command has an alias of Save-PSCalendarConfiguration.

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

Get-PSCalendarConfiguration

Set-PSCalendarConfiguration