From de427257bb097824392c26c40daca8345a7149ed Mon Sep 17 00:00:00 2001 From: David Paulson Date: Thu, 2 Mar 2023 15:42:38 -0600 Subject: [PATCH] Fix Log Collector to make sure 10GB free space is there --- Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 b/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 index 71bc9de49c..c3f2a45aeb 100644 --- a/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 +++ b/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 @@ -165,6 +165,8 @@ function Main { Test-NoSwitchesProvided Write-Host "Exchange Log Collector v$($BuildVersion)" + # Used throughout the script for checking for free space available. + $Script:StandardFreeSpaceInGBCheckSize = 10 if ( $PSCmdlet.ParameterSetName -eq "LogPeriod" -and ( $LogAge.CompareTo($LogEndAge) -ne 1 ) ) { Write-Host "LogStartDate time should smaller than LogEndDate time." -ForegroundColor "Yellow"