Anzeigen der Datenbankgrößen mittels Exchange-Managementshell (EMS) – Exchange 2010 SP1:
- Get-MailboxDatabase -Status | ft Name,ServerName,DatabaseSize
Anzeigen der Datenbankgrößen mittels Exchange-Managementshell (EMS) in MegaByte – Exchange 2010 SP1 & Exchange 2007:
- Get-MailboxDatabase | foreach-object {add-member -inputobject $_ -membertype noteproperty -name mailboxdbsizeinMB -value ([math]::Round(([int64](get-wmiobject cim_datafile -computername $_.server -filter (‘name=”’ + $_.edbfilepath.pathname.replace(“\”,”\\”) + ””)).filesize / 1MB),2)) -passthru} | Sort-Object mailboxdbsizeinMB -Descending | format-table identity,mailboxdbsizeinMB
Anzeigen der Datenbankgrößen mittels Exchange-Managementshell (EMS) in GigaByte - Exchange 2010 SP1 & 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