User mailbox count

Hi,

I have Exchange 2010 STD. I plan on migrating to Exchange online (Office 365). I need to get my total "user" mailboxes. Only user not including Resource Mailboxes  or anything else. Does anyone know how I can get this info or a script?

Thanks

February 9th, 2015 4:48pm

A simple one-liner:

(get-Mailbox -RecipientTypeDetails UserMailbox).count

gives you the number

or list them all:

get-Mailbox -RecipientTypeDetails UserMailbox

If you have multiple AD domains, then before you run that

Set-ADServerSettings -ViewEntireForest

Free Windows Admin Tool Kit Click here and download it now
February 9th, 2015 5:00pm

(get-mailbox -filter "RecipientType -eq 'UserMailbox'" -ResultSize Unlimited).count

This will get you all the user mailboxes. By default, the command will only return the first 1000 mailboxes so using -ResultSize Unlimited makes sure you get them all.

Andy David's post in this thread has good advice if you have multiple domains.

February 9th, 2015 5:04pm

Get-MailboxDatabase MBX-Db-NAME* | Get-Mailbox -filter  "RecipientType -eq 'UserMailbox'" | Group-object -Property:Database | Select-object name,count

This will give you details of Total mailbox per Database.

Free Windows Admin Tool Kit Click here and download it now
February 10th, 2015 12:15am

(get-mailbox -filter "RecipientType -eq 'UserMailbox'" -ResultSize Unlimited).count

This will get you all the user mailboxes. By default, the command will only return the first 1000 mailboxes so using -ResultSize Unlimited makes sure you get them all.

Andy David's post in this thread has good advice if you have multiple domains.

February 10th, 2015 1:00am

perfect thx!
Free Windows Admin Tool Kit Click here and download it now
February 17th, 2015 10:50am

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

Other recent topics Other recent topics