From 8234c6cf50407f2e05f0b88ade51f46a5bd1be3f Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Wed, 26 Aug 2020 13:22:23 +0200 Subject: [PATCH] Update --- Public/Get-GPOZaurrPermissionSummary.ps1 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Public/Get-GPOZaurrPermissionSummary.ps1 b/Public/Get-GPOZaurrPermissionSummary.ps1 index 091c6d8..7e48380 100644 --- a/Public/Get-GPOZaurrPermissionSummary.ps1 +++ b/Public/Get-GPOZaurrPermissionSummary.ps1 @@ -30,7 +30,18 @@ } $Entries | Group-Object -Property Permission, SidType, Name, DomainName, PermissionType | ForEach-Object { $Property = $_.Name -split ', ' - if ($Property.Count -eq 5) { + + if ($Property[0] -eq 'GpoOwner') { + [PSCustomObject] @{ + Permission = $Property[0] + Type = $Property[1] + Name = $Property[2] + DomainName = $Property[3] + PermissionType = 'Allow' + GPOCount = $_.Count + GPONames = if ($Separator) { $_.Group.DisplayName -join $Separator } else { $_.Group.DisplayName } + } + } elseif ($Property.Count -eq 5) { [PSCustomObject] @{ Permission = $Property[0] Type = $Property[1]