Set-VBOGlobalRetentionExclusion

In this article

    Short Description

    Modifies global retention policy settings for contacts and calendars.

    Syntax

    Set-VBOGlobalRetentionExclusion [-Contacts] [-Calendar]  [<CommonParameters>]

    Detailed Description

    This cmdlet modifies global retention policy settings for contacts and calendars.

    Parameters

    Parameter

    Description

    Type

    Required

    Position

    Accept Pipeline Input

    Accept Wildcard Characters

    Contacts

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

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

    SwitchParameter

    False

    Named

    False

     

    Calendar

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

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

    SwitchParameter

    False

    Named

    False

     

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

    Output Object

    The cmdlet returns the VBOGlobalRetentionExclusionobject that contains retention policy settings for calendars and contacts.

    Examples

    Set-VBOGlobalRetentionExclusionExample 1. Enabling Retention Policy for Contacts

    This command enables retention policy for contacts.

    Set-VBOGlobalRetentionExclusion -Contacts

    Set-VBOGlobalRetentionExclusionExample 2. Enabling Retention Policy for Calendars

    This command enables retention policy for calendars.

    Set-VBOGlobalRetentionExclusion -Calendar

    Set-VBOGlobalRetentionExclusionExample 3. Disabling Retention Policy for Contacts

    This command disables retention policy for calendars.

    Set-VBOGlobalRetentionExclusion -Contacts:$false

    Set-VBOGlobalRetentionExclusionExample 4. Disabling Retention Policy for Calendars

    This command disables retention policy for calendars.

    Set-VBOGlobalRetentionExclusion -Calendar:$false