Size of Exchange MDB
I would like to know what is the current size of our Exchange 2007 email database, how could i work this out please?Thanks
June 15th, 2009 12:07pm
Hi there,If you simply need to find the size ofdatabase itselfthen open the properties of the Mailbox Database through EMC, note down the Path. Then use explorer to navigate to the path. You will then see "Mailbox Database.edb" and the size.RegardsJames
Free Windows Admin Tool Kit Click here and download it now
June 15th, 2009 12:20pm
With powershell...
$server = "Exchange2007ServerName" # Give Server Name Here
foreach ($DB in get-mailboxdatabase -server $server)
{
$DBEDBPath = "name='" + $DB.EdbFilePath.ToString().Replace("\","\\") + "'"
$DBEDBSize = (get-wmiobject CIM_Datafile -filter $DBEDBPath -ComputerName $Server).filesize
$DBEDBSize = $DBEDBSize / 1MB
Write-host $DB.identity `t $DBEDBSize
}
Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
June 15th, 2009 12:30pm
Verified the script from Amit in my lab, the following is the output (Success):
========
ServerName\First Storage Group\Mailbox Database 100.015625
========
Of course, you can also James Ledgars suggestion to check the size
Free Windows Admin Tool Kit Click here and download it now
June 15th, 2009 1:09pm
How can we send the results of this script to an admin via email?
April 21st, 2010 4:49pm
How can we send the results of this script to an admin via email?
Hi,
Plz have a look into this very nice forum post:
Exchange Server Database size report
Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM)
www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
April 21st, 2010 5:47pm