Andy Andy
asked on
mailbox database size and mailbox count user
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Will check nd confirm you
ASKER
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
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
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
Name Free Space Size NumberofUsers
---- ---------- ---- -------------
Mailbox Database 0461156407 30 247 12
Mailbox Database 0488204167 82 384 2
ASKER
It still gives me Same result. Please suggest
What is your exchange version? Service pack level?
ASKER
Exchange 2010 sp3 with rollup 2
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={$_.Avai lableNewMa ilboxSpace .ToMB()}}, @{Label="S ize";Expre ssion={$_. DatabaseSi ze.ToMB()} },@{Name=" NumberofUs ers";Expre ssion={(Ge t-Mailbox -resultsize unlimited -Database $_.name).Count}} | ft -auto
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={$_.Avai
ASKER
Good
http://exchangeserverpro.com/reporting-mailbox-folder-sizes-with-powershell/
Tahir