From 3698bc51a6c2a403c77980916497e60f19b00223 Mon Sep 17 00:00:00 2001 From: David Paulson Date: Wed, 6 Nov 2024 09:26:44 -0600 Subject: [PATCH] Add Script Execution Line --- Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 b/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 index 354015813..810a236b0 100644 --- a/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 +++ b/Diagnostics/ExchangeLogCollector/ExchangeLogCollector.ps1 @@ -293,6 +293,7 @@ end { $Script:Logger = Get-NewLoggerInstance -LogName "ExchangeLogCollector-Main-Debug" -LogDirectory ("$RootFilePath$env:COMPUTERNAME") SetWriteVerboseAction ${Function:Write-DebugLog} SetWriteHostAction ${Function:Write-DebugLog} + Write-Verbose "Script Execution Line: $($script:MyInvocation.Line)" Main } finally {