Skip to content

Commit b805ce6

Browse files
fixes
1 parent 545f9f7 commit b805ce6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ function Test-CIPPAuditLogRules {
204204
$LocationTable = Get-CIPPTable -TableName 'knownlocationdbv2'
205205
$ProcessedData = foreach ($AuditRecord in $SearchResults) {
206206
$RecordStartTime = Get-Date
207-
Write-Information "Processing RowKey $($AuditRecord.id) - $($TenantFilter). $($AuditRecord.JSON)"
208-
$RootProperties = $AuditRecord | Select-Object * -ExcludeProperty JSON
209-
$Data = $AuditRecord.JSON | ConvertFrom-Json -Depth 5 -ErrorAction SilentlyContinue | Select-Object *, CIPPAction, CIPPClause, CIPPGeoLocation, CIPPBadRepIP, CIPPHostedIP, CIPPIPDetected, CIPPLocationInfo, CIPPExtendedProperties, CIPPDeviceProperties, CIPPParameters, CIPPModifiedProperties, AuditRecord -ErrorAction SilentlyContinue
207+
Write-Information "Processing RowKey $($AuditRecord.id) - $($TenantFilter)."
208+
$RootProperties = $AuditRecord
209+
$Data = $AuditRecord | Select-Object *, CIPPAction, CIPPClause, CIPPGeoLocation, CIPPBadRepIP, CIPPHostedIP, CIPPIPDetected, CIPPLocationInfo, CIPPExtendedProperties, CIPPDeviceProperties, CIPPParameters, CIPPModifiedProperties, AuditRecord -ErrorAction SilentlyContinue
210210
try {
211211
# Attempt to locate GUIDs in $Data and match them with their corresponding user, group, device, or service principal recursively by checking each key/value once located lets store these mapped values in a CIPP$KeyName property
212212
Write-Information 'Checking Data for GUIDs to map to users, groups, devices, or service principals'

0 commit comments

Comments
 (0)