--- title: "Set-VBOGlobalRetentionExclusion" description: "This cmdlet modifies global retention policy settings for contacts and calendars. To modify settings, you need to enter the necessary parameters with new values. The parameters that you omit will remain unchanged." canonical: "https://helpcenter.veeam.com/docs/vbo365/powershell/set-vboglobalretentionexclusion.html" breadcrumb: "PowerShell Reference > Veeam Backup for Microsoft 365 PowerShell Reference > Data Backup > Folder Exclusions > Set-VBOGlobalRetentionExclusion" dateModified: "2026-08-21" --- # Set-VBOGlobalRetentionExclusion ## Short Description Modifies global retention policy settings for contacts and calendars. ## Syntax ``` Set-VBOGlobalRetentionExclusion [-Contacts] [-Calendar] [] ``` ## Detailed Description This cmdlet modifies global retention policy settings for contacts and calendars. To modify settings, you need to enter the necessary parameters with new values. The parameters that you omit will remain unchanged. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Calendar

Defines that the cmdlet will change global retention policy settings for calendars.

Default: False

If you provide this parameter, the global retention policy will be applied to calendars. Otherwise, global retention policy will not be applied to calendars.

SwitchParameter

False

Named

False

Contacts

Defines that the cmdlet will change global retention policy settings for contacts.

Default: False

If you provide this parameter, the global retention policy will be applied to contacts. Otherwise, global retention policy will not be applied to contacts.

SwitchParameter

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Learn. ## Output Object The cmdlet returns the [`VBOGlobalRetentionExclusion`](vboglobalretentionexclusion.md) object that contains retention policy settings for calendars and contacts. ## Examples ::: example ### Example 1: Enabling Retention Policy for Contacts This command enables retention policy for contacts. ``` Set-VBOGlobalRetentionExclusion -Contacts ``` ::: ::: example ### Example 2: Enabling Retention Policy for Calendars This command enables retention policy for calendars. ``` Set-VBOGlobalRetentionExclusion -Calendar ``` ::: ::: example ### Example 3: Disabling Retention Policy for Contacts This command disables retention policy for contacts. ``` Set-VBOGlobalRetentionExclusion -Contacts:$false ``` ::: ::: example ### Example 4: Disabling Retention Policy for Calendars This command disables retention policy for calendars. ``` Set-VBOGlobalRetentionExclusion -Calendar:$false ``` :::