Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 703
  • Last Modified:

Exchange Retention Policy on OU

Hi, We have 2 User OU's in AD. We would like to setup different retention policies for each OU. We have one exchange DB. Is this possible to do?

thanks in advance
0
cntrlphreek
Asked:
cntrlphreek
1 Solution
 
Julian123Commented:
It is possible to do this manually but not automatically. What I mean by that is you could run a Cmdlet along the lines of:

get-mailbox | where-object -FilterScript {$_.organizationalunit -match "company.local/MyBusiness/Users"} | set-retentionpolicy <your chosen retention policy here>

This would configure the retention policy for all the users in that organization at that time. However, if a new user is added to the organizational unit, they would not automatically get that policy so it would need to be manually added. This can be done by adding the policy as soon as the new mailboxes created or by running the cmdlet mentioned above on a regular basis, either manually or via a scheduled task.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now