Start a Conversation

Unsolved

This post is more than 5 years old

417

May 6th, 2012 19:00

Find out Exchange DB sizing with Powershell.

The DB size is important to storage sizing and BR/BC planning. Here is two scripts for collecting DB sizing of 2007/2010. Hope useful to you.

Exchange 2010

Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize

PS:Exchange 2007,

Get-MailboxDatabase | foreach-object {add-member -inputobject $_ -membertype noteproperty -name mailboxdbsizeinGB -value ([math]::Round(([int64](get-wmiobject cim_datafile -computername $_.server -filter ('name=''' + $_.edbfilepath.pathname.replace("\","\\") + '''')).filesize / 1GB),2)) -passthru} | Sort-Object mailboxdbsizeinGB -Descending | format-table identity,mailboxdbsizeinGB

Eddy

No Responses!
No Events found!

Top