Solved

mailbox database size and mailbox count user

Posted on 2014-04-14
10
4,064 Views
Last Modified: 2014-04-27
Hello Team,

Can anybosy tell the powershell command to check all mailbox database size and mailbox count per database in single command.

Any help will be appreciated

Thanks
0
Comment
Question by:Addy Nadia
  • 5
  • 4
10 Comments
 
LVL 7

Expert Comment

by:Mohammed Tahir
ID: 40001196
0
 
LVL 3

Accepted Solution

by:
Krishna Patil earned 500 total points
ID: 40001210
Hi, Run this command

Get-MailboxDatabase -Status | select Name,@{Label="Free Space";Expression={$_.AvailableNewMailboxSpace.ToMB()}},@{Label="Size";Expression={$_.DatabaseSize.ToMB()}},@{Name="NumberofUsers";Expression={(Get-Mailbox -resultsize unlimited -Database $_.name).Count}} | ft -auto
0
 
LVL 5

Author Comment

by:Addy Nadia
ID: 40009266
Will check nd confirm you
0
 
LVL 5

Author Comment

by:Addy Nadia
ID: 40017058
hello Krishna,

It give me only below result. I still didnt get the how mailbox reside in that databases.
in below Freespace and Size only comes not the number of users..

Name         Free Space Size NumberofUsers
----         ---------- ---- -------------
BCCMBDB00          1354 2312
BCCMBDB10           973 1800
QUUARCDB04          836  904
BCCARCDB10          678  776
BCCARCDB12          122  184
BCCARCDB14          721  776
BCCARCDB16          509  776
BCCARCDB18          762  904
BCCARCDB00          939 1032
BCCARCDB02          817  904
QUUARCDB02          830  904
BCCARCDB04          755  904
BCCARCDB08          770  904
BCCARCDB06          833  904


Please tell how to complete this
0
 
LVL 3

Expert Comment

by:Krishna Patil
ID: 40017127
Its giving me result in following format, Please copy the script, that I shared correctly and no need to paste this in .ps1 file and then execute.


Name                        Free Space Size NumberofUsers
----                        ---------- ---- -------------
Mailbox Database 0461156407         30  247            12
Mailbox Database 0488204167         82  384             2
0
Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

 
LVL 5

Author Comment

by:Addy Nadia
ID: 40019356
It still gives me Same result. Please suggest
0
 
LVL 3

Expert Comment

by:Krishna Patil
ID: 40019483
What is your exchange version? Service pack level?
0
 
LVL 5

Author Comment

by:Addy Nadia
ID: 40019488
Exchange 2010 sp3 with rollup 2
0
 
LVL 3

Expert Comment

by:Krishna Patil
ID: 40019567
For same version, I am getting correct result.

YOu can try following script. I just added specific DB, add just any DB name

Get-MailboxDatabase  -identity DBNAME -Status | select Name,@{Label="Free Space";Expression={$_.AvailableNewMailboxSpace.ToMB()}},@{Label="Size";Expression={$_.DatabaseSize.ToMB()}},@{Name="NumberofUsers";Expression={(Get-Mailbox -resultsize unlimited -Database $_.name).Count}} | ft -auto
0
 
LVL 5

Author Closing Comment

by:Addy Nadia
ID: 40026554
Good
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
how to add IIS SMTP to handle application/Scanner relays into office 365.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now