Skip to content

Commit b9bfbe2

Browse files
corrected exclude
1 parent 1424561 commit b9bfbe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function Test-CIPPAuditLogRules {
205205
$ProcessedData = foreach ($AuditRecord in $SearchResults) {
206206
$RecordStartTime = Get-Date
207207
Write-Information "Processing RowKey $($AuditRecord.id)"
208-
$RootProperties = $AuditRecord | Select-Object * -ExcludeProperty auditData
208+
$RootProperties = $AuditRecord | Select-Object * -ExcludeProperty JSON
209209
$Data = $AuditRecord.JSON | ConvertFrom-Json -Depth 5 | 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

0 commit comments

Comments
 (0)