Discussion:
cmdlet to list mailbox sizes per organizational unit
(too old to reply)
Chris Meehan
2008-06-20 18:45:02 UTC
Permalink
Hello,

I'm trying to come up with my storage group and database design in our new
Exchange 2007 organization. I am currently coexsting with a 2003 org and have
already moved some users to 2007. Wondering if anyone has a powershell script
or a method of finding out mailbox sizes per organiztional unit. Can i use
powershell with the ex07 commands to query Active Directory for a list of
users in an OU and then grab the mailbox statistics for those users if thier
mailbox resides in 2003?

What I"m trying to accomplish is to break up my users into storage groups
and databases that will not exceed 75GB and I have users all over the
country.. Was thinking about mimicking my OU design with storage groups...

Also, would be curious to know how some other people have designed their
storage grps and atabases when they have 4000+ mailboxes nationally
dispersed, while keeping MS best practices in mind when it comes to storage
groups and databases....

thanks in advance.

Chris
Bharat Suneja [MSFT]
2008-06-20 19:55:02 UTC
Permalink
You can use Get-Mailbox with the -OrganizationalUnit parameter and pipe it
to Get-MailboxStatistics:
Get-Mailbox -OrganizationalUnit "YourOUName" | Get-MailboxStatistics | ft
displayName,TotalItemSize -Autosize
--
Bharat Suneja
Microsoft Corporation
blog: exchangepedia.com/blog

This posting is provided "AS IS" with no warranties, and confers no
rights. Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
----------------------------
Post by Chris Meehan
Hello,
I'm trying to come up with my storage group and database design in our new
Exchange 2007 organization. I am currently coexsting with a 2003 org and have
already moved some users to 2007. Wondering if anyone has a powershell script
or a method of finding out mailbox sizes per organiztional unit. Can i use
powershell with the ex07 commands to query Active Directory for a list of
users in an OU and then grab the mailbox statistics for those users if thier
mailbox resides in 2003?
What I"m trying to accomplish is to break up my users into storage groups
and databases that will not exceed 75GB and I have users all over the
country.. Was thinking about mimicking my OU design with storage groups...
Also, would be curious to know how some other people have designed their
storage grps and atabases when they have 4000+ mailboxes nationally
dispersed, while keeping MS best practices in mind when it comes to storage
groups and databases....
thanks in advance.
Chris
Chris Meehan
2008-06-20 20:23:01 UTC
Permalink
Thank you, the command does work as thoerized but, since the mailboxes reside
in an exchange 2003 database it won't pull the actually data for me.. Shoot!
so close...
Post by Bharat Suneja [MSFT]
You can use Get-Mailbox with the -OrganizationalUnit parameter and pipe it
Get-Mailbox -OrganizationalUnit "YourOUName" | Get-MailboxStatistics | ft
displayName,TotalItemSize -Autosize
--
Bharat Suneja
Microsoft Corporation
blog: exchangepedia.com/blog
This posting is provided "AS IS" with no warranties, and confers no
rights. Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
----------------------------
Post by Chris Meehan
Hello,
I'm trying to come up with my storage group and database design in our new
Exchange 2007 organization. I am currently coexsting with a 2003 org and have
already moved some users to 2007. Wondering if anyone has a powershell script
or a method of finding out mailbox sizes per organiztional unit. Can i use
powershell with the ex07 commands to query Active Directory for a list of
users in an OU and then grab the mailbox statistics for those users if thier
mailbox resides in 2003?
What I"m trying to accomplish is to break up my users into storage groups
and databases that will not exceed 75GB and I have users all over the
country.. Was thinking about mimicking my OU design with storage groups...
Also, would be curious to know how some other people have designed their
storage grps and atabases when they have 4000+ mailboxes nationally
dispersed, while keeping MS best practices in mind when it comes to storage
groups and databases....
thanks in advance.
Chris
Tahir Zafar
2010-03-25 19:09:35 UTC
Permalink
This is not working for me. For Example. There are parent OU and Child names
with same name like Argentina.
I used CN name . It did not produce any results,
I am just trying to use OU name as parameter for Get mailbox statistics
command ,
Thanks for your help.

url:http://www.ureader.com/msg/1172831.aspx
Martin Therkelsen
2010-04-17 17:33:14 UTC
Permalink
Are you sure you are writing it right? I have been using that cmdlet a lot
and it works lige a charm when you get the OU syntax right.

br
Martin
Post by Tahir Zafar
This is not working for me. For Example. There are parent OU and Child names
with same name like Argentina.
I used CN name . It did not produce any results,
I am just trying to use OU name as parameter for Get mailbox statistics
command ,
Thanks for your help.
url:http://www.ureader.com/msg/1172831.aspx
Loading...