Skip to content

Commit

Permalink
Update Test-CIPPAuditLogRules.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Oct 3, 2024
1 parent 5c47a0f commit 8d27543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Test-CIPPAuditLogRules {
}
Write-Information 'Getting audit records from Graph API'
$SearchResults = Get-CippAuditLogSearchResults -TenantFilter $TenantFilter -QueryId $SearchId
$LogCount = ($Data | Measure-Object).Count
$LogCount = ($SearchResults | Measure-Object).Count
Write-Information "Logs to process: $LogCount"
$Results.TotalLogs = $LogCount
if ($LogCount -gt 0) {
Expand Down Expand Up @@ -129,7 +129,7 @@ function Test-CIPPAuditLogRules {
$Data.CIPPHostedIP = $hosting
$Data.CIPPIPDetected = $IP
$Data.CIPPLocationInfo = ($Location | ConvertTo-Json)
$Data.AuditRecord = ($AuditRecord | ConvertTo-Json)
$Data.AuditRecord = ($RootProperties | ConvertTo-Json)
}
$Data | Select-Object * -ExcludeProperty ExtendedProperties, DeviceProperties, parameters
} catch {
Expand Down

0 comments on commit 8d27543

Please sign in to comment.