Every time we got to do a audit on number of mailboxes on each databases and it has to be maintained with a threshold .
Without going for PowerShell Script . or not checking the mailboxes count in each database .
if you run this below PowerShell command it will list the number of mailboxes available in each database in the Exchange server.
PS —
Get-MailboxDatabase | foreach{($_.name) + '='+ (Get-Mailbox -Resultsize unlimited -Database $_.Identity ).count + ' Mailboxes'}
Exchange Power Shell Command – To Get the List of Mailbox for Each Database
(get-mailboxdatabase) | foreach-object {write-host $_.name (get-mailbox -database $_.name).count}
Regards,
_______________________________________________________________________________
Abdul Azees – Messaging & Collaboration Support, Enterprise IT Services
Mobile No : +91 – 9994567003
Good Command Abdul.
Excellent command Abdul Bhai
Be careful! If you use (get-mailbox -database $name).count and MBXdatabase have only one mailbox this construction return $null…
Try:
[array]$MBXarray = (get-mailbox -database $name).Name
$MBXarray.Count
Hey this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually
code with HTML. I’m starting a blog soon but have no coding
expertise so I wanted to get guidance from someone
with experience. Any help would be enormously appreciated!
Good …very useful command
Very helpful, straight to the point.
Hi friends, its fantastic post about teachingand completely
explained, keep it up all the time.
Be careful! If you use (get-mailbox -database $name).count and MBXdatabase have only one mailbox this construction return $null…
Try:
[array]$MBXarray = (get-mailbox -database $name).Name
$MBXarray.Count