Friday, September 19, 2008

How many users per mailbox database

this post has been moved to

http://www.exchange-genie.com/2008/09/how-many-users-per-mailbox-database/

16 comments:

Nature's Revenge said...

Very nice; thanks Genie.

Anonymous said...

thanks, usefull.

Fyi:
A litte error in your script when copying it. There is a "space" between the "-" and "-resultsize:unlimited).count". This end with an error

Bruno

Exchange_Genie said...

thanks, must have happened in the copy paste :)

Felix Jacob said...

Great Script...Could you please tell us to how to get the result to a .csv file?

Exchange_Genie said...

You can just pipe it to the export-csv command..

http://technet.microsoft.com/en-us/library/bb978597.aspx

Anonymous said...

Hi - Where can I get more such scripts....thanks again

Exchange_Genie said...

I would say just search on the web, what are you looking for?

Gerhard said...

Its so freaking cool.

Thanks.

kaveh said...

Hi, thanks for the script. It has an error.

If there is only 1 mailbox in the Mailbox Database it says "Empty Database, no users"

Any idea why?

Thanks again,
Kaveh

Exchange_Genie said...

I have not seen that happen, is the mailbox a system mailbox or user?

kaveh said...

It's a user mailbox.
I'm using Exchange 2007 without SP1 (I don't know if that makes a difference)

I made a Storage Group
I made a Mailbox Database in it.
I made a User Mailbox in the Database.

I ran the script and it says it's empty.

Exchange_Genie said...

run this get-mailbox -database youdbnamehere

and see what you get....

kaveh said...

It shows the Name, Alias, ServerName and ProhibitSendQuota of the one person in the DB...

So for you it works fine? What version of Exchange and Powershell do you have? Maybe that's the difference?

Exchange_Genie said...

Don't believe there was any changes since RTM with those commands however I am now on Sp1 RU5 if you are not on SP1 RU5 you really need to upgrade as there are hundreds of fixes and new features added in SP1 to make life easier

kaveh said...

Ya, I need to install the SP1 update. I'll probably do that when we close for Christmas holidays. Is it straight forward to install?

Our Exchange 2007 environment is clustered so I can upgrade half the servers, flip control, and upgrade the other half.

Exchange_Genie said...

simple to do... for a cluster you upgrade the passive node, then fail over... it will fails then you up setup /upgradecms and it will come online then do the former active and now passive node...

note do the CAS servers first... fyi there are 5 rollups to sp1 already so you are pretty far back on your patching.