From b180bfee014e0e108046b44fc326c7ca323f59ea Mon Sep 17 00:00:00 2001 From: Marius Pana Date: Tue, 23 Dec 2014 11:17:10 +0200 Subject: [PATCH] initial agent --- agents/plugins/sph-exchange-database-size.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 agents/plugins/sph-exchange-database-size.ps1 diff --git a/agents/plugins/sph-exchange-database-size.ps1 b/agents/plugins/sph-exchange-database-size.ps1 new file mode 100644 index 0000000..3b214d7 --- /dev/null +++ b/agents/plugins/sph-exchange-database-size.ps1 @@ -0,0 +1,13 @@ +#[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 + +Get-MailboxDatabase -Status | Select-Object Name,DatabaseSize,AvailableNewMailboxSpace | Sort-Object Name