diff --git a/Calendar/CalLogHelpers/ExportToExcelFunctions.ps1 b/Calendar/CalLogHelpers/ExportToExcelFunctions.ps1 index 66e566e9c6..214c85e8f8 100644 --- a/Calendar/CalLogHelpers/ExportToExcelFunctions.ps1 +++ b/Calendar/CalLogHelpers/ExportToExcelFunctions.ps1 @@ -58,7 +58,7 @@ function LogScriptInfo { $RunInfo | Export-Excel -Path $FileName -WorksheetName "Script Info" -MoveToEnd $script:CollectedCmdLine = $true } - # If someone runs the script the script again logs will update, but ScriptInfo done not update. Need to add new table for each run. + # If someone runs the script the script again logs will update, but ScriptInfo does not update. Need to add new table for each run. } function Export-TimelineExcel { diff --git a/Calendar/Get-RBASummary.ps1 b/Calendar/Get-RBASummary.ps1 index ce26bea7b0..c05c8d4d5d 100644 --- a/Calendar/Get-RBASummary.ps1 +++ b/Calendar/Get-RBASummary.ps1 @@ -532,9 +532,8 @@ function RBALogSummary { $RBALog = ((Export-MailboxDiagnosticLogs $Identity -ComponentName RBA).MailboxLog -split "`\n`\r").Trim() - Write-Host "`tFound $($RBALog.count) RBA Log entries in RBALog. Summarizing Accepts, Declines, and Tentative meetings." - if ($RBALog.count -gt 1) { + Write-Host "`tFound $($RBALog.count) RBA Log entries in RBALog. Summarizing Accepts, Declines, and Tentative meetings." $Starts = $RBALog | Select-String -Pattern "START -" $FirstDate = "[Unknown]" $LastDate = "[Unknown]" @@ -626,6 +625,8 @@ function RBALogSummary { Write-Host -ForegroundColor Cyan $Filename -NoNewline Write-Host "] in the current directory." $RBALog | Out-File $Filename + + RBAPostScript } else { Write-Warning "No RBA Logs found. Send a test meeting invite to the room and try again if this is a newly created room mailbox." } @@ -768,5 +769,4 @@ RBADelegateSettings RBAPostProcessing VerbosePostProcessing RBALogSummary -RBAPostScript Stop-Transcript diff --git a/docs/Calendar/Get-CalendarDiagnosticObjectsSummary.md b/docs/Calendar/Get-CalendarDiagnosticObjectsSummary.md index b2934e82d3..0934173355 100644 --- a/docs/Calendar/Get-CalendarDiagnosticObjectsSummary.md +++ b/docs/Calendar/Get-CalendarDiagnosticObjectsSummary.md @@ -48,3 +48,7 @@ Get-CalendarDiagnosticObjectsSummary.ps1 -Identity $Users -MeetingID $MeetingID ``` Will create file like `.\123456_CalLogSummary_.xlsx` in current directory. + +More Documenation on collecting CalLogs and Analyzing them: +https://learn.microsoft.com/en-us/exchange/troubleshoot/calendars/get-calendar-diagnostic-logs +https://learn.microsoft.com/en-us/exchange/troubleshoot/calendars/analyze-calendar-diagnostic-logs \ No newline at end of file