Run the Get-VBOOrganization cmdlet. Set the Name parameter value. Save the result to the $org variable.
Run the Get-VBOOrganizationRetentionExclusion cmdlet. Set the $org variable as the Organization parameter value. Save the result to the $policysettings variable.
Run theSet-VBOOrganizationRetentionExclusioncmdlet. Set the $policysettings variable as the Exclusion parameter value. Set the :$true value for the Contacts parameter.
Example 2. Enabling Organization Retention Policy for Calendars
This command enables organization retention policy for calendars.
Run the Get-VBOOrganization cmdlet. Set the Name parameter value. Save the result to the $org variable.
Run the Get-VBOOrganizationRetentionExclusion cmdlet. Set the $org variable as the Organization parameter value. Save the result to the $policysettings variable..
Run theSet-VBOOrganizationRetentionExclusioncmdlet. Set the $policysettings variable as the Exclusion parameter value. Set the :$true value for the Calendar parameter.
Example 3. Disabling Organization Retention Policy for Contacts
This command disables organization retention policy for contacts.
Run the Get-VBOOrganization cmdlet. Set the Name parameter value. Save the result to the $org variable.
Run the Get-VBOOrganizationRetentionExclusion cmdlet. Set the $org variable as the Organization parameter value. Save the result to the $policysettings variable.
Run the Set-VBOOrganizationRetentionExclusioncmdlet. Set the $policysettings variable as the Exclusion parameter value. Set the :$false value for the Contacts parameter.
Example 4. Disabling Organization Retention Policy for Calendars
This command disables organization retention policy for calendars.
Run the Get-VBOOrganization cmdlet. Set the Name parameter value. Save the result to the $org variable.
Run the Get-VBOOrganizationRetentionExclusion cmdlet. Set the $org variable as the Organization parameter value. Save the result to the $policysettings variable.
Run theSet-VBOOrganizationRetentionExclusioncmdlet. Set the $policysettings variable as the Exclusion parameter value. Set the :$false value for the Calendar parameter.