Mailbox Size based on group memberships
Hi ! the question is simple we have some accepted domains and a database for each of them, but the company works as a whole and all of them are under one exchange organization. assume each accepted domain as a company with a person at the head now this is what i want create a group in Active directory (all people are in the same domain) containing these people at the head and set their mailbox size at 100 MB (boss@companyA.com, boss@company2.com and .. - ) the second one may be easier ! create an active directory group in a database (all in companyA database - companyA accepted domain) and set a specific mailbox size for them as you notice i do not want database or user level mailbox size policies. i like to do this based on some AD groups Thanks so much
August 28th, 2012 5:56am

Hi, Mailbox size can only be set at the database or user level so a group can't help you. Leif
Free Windows Admin Tool Kit Click here and download it now
August 28th, 2012 6:25am

On Tue, 28 Aug 2012 09:49:52 +0000, M. Ganji wrote: >the question is simple > >we have some accepted domains and a database for each of them, but the company works as a whole and all of them are under one exchange organization. > >assume each accepted domain as a company with a person at the head > >now this is what i want > >create a group in Active directory (all people are in the same domain) containing these people at the head and set their mailbox size at 100 MB (boss@companyA.com, boss@company2.com and .. - ) > >the second one may be easier ! create an active directory group in a database (all in companyA database - companyA accepted domain) and set a specific mailbox size for them > >as you notice i do not want database or user level mailbox size policies. i like to do this based on some AD groups You can do this using this sort of framework: $g = (get-group <groupname>).members foreach ($m in $g) { set-mailbox $m.distinguishedname <quota1> <quota2> <quota3> } Run your script as a scheduled task. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
August 28th, 2012 11:23am

$g = (get-group <groupname>).members foreach ($m in $g) { set-mailbox $m.distinguishedname <quota1> <quota2> <quota3> } Thanks but that is not working for me maybe i am not ok with the correct syntax of command i tested get.group <groupname> with all sort of arguments but not successful assume the group name is test and we want to set it to warning:100 , prohibitsend:120 prohibitsendreceive:150 would you please tell me the right syntax for this ?
Free Windows Admin Tool Kit Click here and download it now
August 29th, 2012 12:58am

$g = (get-group <groupname>).members foreach ($m in $g) { set-mailbox $m.distinguishedname <quota1> <quota2> <quota3> } Thanks but that is not working for me maybe i am not ok with the correct syntax of command i tested get.group <groupname> with all sort of arguments but not successful assume the group name is test and we want to set it to size:100 , prohibitsend:120 prohibitsendreceive:150 would you please tell me the right syntax for this ?
August 29th, 2012 1:05am

On Wed, 29 Aug 2012 04:58:46 +0000, M. Ganji wrote: >$g = (get-group <groupname>).members >foreach ($m in $g) { >set-mailbox $m.distinguishedname <quota1> <quota2> <quota3> >} > >Thanks but that is not working for me > >maybe i am not ok with the correct syntax of command > >i tested get.group <groupname> with all sort of arguments but not successful It's get-group, not get.group. What does "not successful" mean"? Does "get-group <groupname>" return anything? >assume the group name is test and we want to set it to warning:100 , prohibitsend:120 prohibitsendreceive:150 > >would you please tell me the right syntax for this ? Have you tried "help set-mailbox -det" and "help get-group -det"? --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
August 29th, 2012 2:51pm

i do not find any parameter for members please you test and give it to me when i issue a command get-group groupname it returns the group as security group and all that lets forget the main problem and focus on this can you please give me an exchange command (shell) to return members of an AD group ? get-group GroupName.members does not work
August 29th, 2012 3:55pm

On Wed, 29 Aug 2012 19:48:20 +0000, M. Ganji wrote: > > >i do not find any parameter for members > >please you test and give it to me > >when i issue a command get-group groupname it returns the group as security group and all that > >lets forget the main problem and focus on this > >can you please give me an exchange command (shell) to return members of an AD group ? > >get-group GroupName.members does not work Of course it doesn't -- you've omitted the parentheses that surround the "(get-group <groupname>)" in my example. Let's concentrate on you following the example, okay? --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
August 29th, 2012 5:39pm

Thanks so much ! it was my fault i changed some little part of it and this is the final which worked very well (My group name is ilo-admins and the sizes are based on Bytes) *************************************************************************** $g = (get-group ilo-admins).members foreach ($m in $g) { set-mailbox $m.distinguishedname -IssueWarningQuota 309715200 -ProhibitSendQuota 362144000 -ProhibitSendReceiveQuota 393601280 } ***************************************************************************
August 30th, 2012 1:12am

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

Other recent topics Other recent topics