This was a treat for me to find so I'm posting it in hopes it will help save others many valuable hours on google.
There are plenty of articles out there on how to set up Managed folder mailbox policies but my struggle was with how to apply them to a large amount of users in our organization. Typically we like to do things like this based on the Active Directory fields ( in particular the company field).
Here is the power shell command to accomplish this.
Get-Recipient -filter { company -like 'blah'} | set-mailbox -managedfoldermailboxpolicy "empty deleted items"
Another handy command to help you test this out is:
start-managedfolderassistant -mailbox username
Don't forget to schedule a time for the assistant to run. This is found under Server Configuration, Mailbox, Properties of your server, Messaging Records Management tab.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment