File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 77 RootModule = ' .\DFIR-O365RC.psm1'
88
99 # Version number of this module.
10- ModuleVersion = ' 2.0.4 '
10+ ModuleVersion = ' 2.0.5 '
1111
1212 # Supported PSEditions
1313 CompatiblePSEditions = ' Core' , ' Desktop'
Original file line number Diff line number Diff line change @@ -893,7 +893,9 @@ function Get-UnifiedAuditLogPurview {
893893 [Int ]$retryCount = " 0"
894894 do {
895895 try {
896+ " Trying to get events for query $auditLogQueryId " | Write-Log - LogPath $logFile - LogLevel " Info"
896897 $records = Get-MgBetaSecurityAuditLogQueryRecord - AuditLogQueryId $auditLogQueryId - All - ErrorAction Stop
898+ " Got events for query $auditLogQueryId " | Write-Log - LogPath $logFile - LogLevel " Info"
897899 $stopLoop = $true
898900 }
899901 catch {
@@ -972,7 +974,7 @@ function Get-MailboxAuditLog {
972974 $stopLoop = $true
973975 }
974976 catch {
975- if ($_.ToString ().contains(" ManagementObjectNotFoundException" )){
977+ if ($_.ToString ().contains(" ManagementObjectNotFoundException" ) -or $_ .ToString ().contains( " couldn't be found on " ) ){
976978 " $ ( $userId ) does not have a mailbox" | Write-Log - LogPath $logFile - LogLevel " Warning"
977979 $countMailboxAuditLogEntries = 0
978980 $stopLoop = $true
You can’t perform that action at this time.
0 commit comments