Set maximum number of recipients per message by OU / or account property (company etc)
Hey guys, anyone know how to limit the number of recipients per message by OU or perhaps some other AD account atrribute?We have an Exchange 2007 environment.Can we do it by Powershell?I'm talking about an Education environment here, need to place a big restriction on Student accounts, but leave staff at default settings.I can see how to do it individually (no thanks) and I can see how to do it for everyone.But thats not what we need.Mr Google does not seem to have the answer!Thanks for any tips.Regards Peter.
March 15th, 2009 1:39pm

Use server side filtering for OU and client side filtering for various Exchange related AD attributes...For anOU:Get-Mailbox-OrganizationalUnit "DomainName.com/BranchOU/Users" -ResultSize Unlimited |Set-Mailbox -RecipientLimits 100For an AD Attribute:Get-Mailbox -ResultSize Unlimited| Where{$_.CustomAttribute4 -eq "Students"} |Set-Mailbox -RecipientLimits 100Reference:Working with Command Outputhttp://technet.microsoft.com/en-us/library/bb123533.aspxHope this helps...!!! Am I better than Mr. Google... ? ;)Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
March 15th, 2009 2:59pm

You sir .......... are a ledgend. I did a test on my home lab and it worked fine. So after that I could not wait and connected into the Exchange server at work and ran the command.Thankyou so much.This was my first post on the exchange forumand it was answered no time at all.Great stuff.Best regards Peter.
March 15th, 2009 3:55pm

Welcome,we're glad you're here...:)Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
March 15th, 2009 4:22pm

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

Other recent topics Other recent topics