1.查看現(xiàn)有Exchange 2010數(shù)據庫大小
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
效果如圖:
2.查看現(xiàn)有Exchange 2010數(shù)據庫空余空間大小(可以使用Eseutil /d離線整理出來大?。?/span>
Get-MailboxDatabase -Status | Select-Object Server,Name,AvailableNewMailboxSpace
效果如圖:
3.同時看到數(shù)據庫大小及可用空白空間:
Get-MailboxDatabase -Status | ft name,databasesize,availablenewmailboxspace -auto