Wednesday, April 6, 2011

Exchange 2007 Database Size

This is a good way to report on Exchange 2007 database sizes.  ThisPowershell Script reports on the number of users per database.  I found the script in my notes and don't know who to give credit to.  

Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name="Number Of Mailboxes";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Format-Table -AutoSize

I like to write results to a text file, so I changed the Format-Table cmdlet to Out-File C:\temp\DbSize.txt  

No comments:

Post a Comment