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 {