From 4850fdb80d3421e151465b77d0a56b0881d438b3 Mon Sep 17 00:00:00 2001 From: Meik Date: Fri, 13 Mar 2026 16:51:23 +0100 Subject: [PATCH] Fix orphaned ACL cleanup summary count --- Sonstiges/Remove-OrphanedFolderAclEntries.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sonstiges/Remove-OrphanedFolderAclEntries.ps1 b/Sonstiges/Remove-OrphanedFolderAclEntries.ps1 index 8209e5f..28c2a78 100644 --- a/Sonstiges/Remove-OrphanedFolderAclEntries.ps1 +++ b/Sonstiges/Remove-OrphanedFolderAclEntries.ps1 @@ -119,7 +119,7 @@ foreach ($directory in Get-TargetDirectories -RootPath $resolvedPath) { } $checkedDirectories = $results.Count -$changedDirectories = ($results | Where-Object { $_.Changed }).Count +$changedDirectories = @($results | Where-Object { $_.Changed }).Count $removedRules = ($results | Measure-Object -Property RemovedRuleCount -Sum).Sum if ($null -eq $removedRules) { $removedRules = 0