Need Powershell command to enable mailbox policy for all users, Exchange2007
I need a little help here, Trying to enable folder mailbox policy, and attach the policy for all users.The only way through EMC, would be to gointo each recipient's messaging records settings and do it manually for our 700 + users. I hear this can be done by a script in powershell. What I need done is to empty the junk mail folder. I already created the acyually policy and schedule. Just need all theusers to get it done for them. Thanks
May 30th, 2008 6:40pm

Hi Shanes, Below command gets all mailboxes in your organization and pipe the output to set-mailbox command to set mailbox policy. Get-Mailbox | Set-Mailbox-ManagedFolderMailboxPolicy "Policy Name" -ManagedFolderMailboxPolicyAllowed If you want to set it only for user mailboxes (exclude shared, resource mailboxes)then run below command. Get-Mailbox -RecipientType UserMailbox | Set-Mailbox-ManagedFolderMailboxPolicy "Policy Name" -ManagedFolderMailboxPolicyAllowed Information about ManagedFolderMailboxPolicyAllowed The ManagedFolderMailboxPolicyAllowed parameter bypasses the warning that messaging records management (MRM) features are not supported for e-mail clients running versions of Outlook earlier than Outlook 2007. Hope this helps...!!
Free Windows Admin Tool Kit Click here and download it now
May 30th, 2008 8:20pm

June 2nd, 2008 6:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics