check_mk-exchange-database-.../agents/plugins/sph-exchange-database-size.ps1

14 lines
620 B
PowerShell
Raw Normal View History

2014-12-23 11:17:10 +02:00
#[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
#write-output "" # workaround to prevent the byte order mark to be at the
# beginning of the first section
##############################################################################
# Exchange 2010 : mail database size
# Author: Marius Pana
# Company: Spearhead Systems
# Date 12/23/14
##############################################################################
add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
2014-12-23 11:21:58 +02:00
Get-MailboxDatabase -Status | Select-Object Name,DatabaseSize,AvailableNewMailboxSpace | Sort-Object Name | ft -hide