From 4469b45f64654a90398101dea43ef5ffc10275a3 Mon Sep 17 00:00:00 2001 From: Marius Pana Date: Tue, 23 Dec 2014 17:58:40 +0200 Subject: [PATCH] fixed typo in comments --- agents/plugins/SPH-Exchange-MailboxSize.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agents/plugins/SPH-Exchange-MailboxSize.ps1 b/agents/plugins/SPH-Exchange-MailboxSize.ps1 index cd0d23c..40cf4ce 100644 --- a/agents/plugins/SPH-Exchange-MailboxSize.ps1 +++ b/agents/plugins/SPH-Exchange-MailboxSize.ps1 @@ -3,7 +3,7 @@ ##################################################################################### # Exchange 2010 : per user mailbox size # Author: Marius Pana -# Company: Spearhead Systems +# Company: Spearhead Systems # Date 12/16/14 ##################################################################################### @@ -16,7 +16,7 @@ add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 # PrimarySmtpAddress = $mailbox.PrimarySmtpAddress # TotalItemSize = $Stat.TotalItemSize.value.ToMB() # } -#}) | Select PrimarySmtpAddress,TotalItemSize | +#}) | Select PrimarySmtpAddress,TotalItemSize | #Export-CSV C:\CMK-MailboxReport.csv -NTI} # filename for timestamp @@ -36,7 +36,7 @@ If (Test-Path $timestamp){ $filedate = (ls $timestamp).LastWriteTime $now = Get-Date $earlier = $now.AddSeconds(-$delay) - # exit if timestamp to young + # exit if timestamp too young if ( $filedate -gt $earlier ) { exit } } # create new timestamp file @@ -51,7 +51,7 @@ $Stat = $mailbox | Get-MailboxStatistics | Select TotalItemSize PrimarySmtpAddress = $mailbox.PrimarySmtpAddress TotalItemSize = $Stat.TotalItemSize.value.ToMB() } -}) | Select PrimarySmtpAddress,TotalItemSize | +}) | Select PrimarySmtpAddress,TotalItemSize | Export-CSV C:\CMK-MailboxReport.csv -NoTypeInformation (Get-Content C:\CMK-MailboxReport.csv) | Foreach-Object {$_ -replace '"', ''} | Foreach-Object {$_ -replace ',', ' '} | select -Skip 1 | Set-Content C:\CMK-MailboxReport.csv