From d0dc7a705225af3d2355773493ba053fccf19fb8 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Fri, 13 Nov 2020 23:32:05 +0100 Subject: [PATCH] Disabled verbose --- Private/Get-PrivPermission.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Private/Get-PrivPermission.ps1 b/Private/Get-PrivPermission.ps1 index e3fb48b..8e556f6 100644 --- a/Private/Get-PrivPermission.ps1 +++ b/Private/Get-PrivPermission.ps1 @@ -166,7 +166,7 @@ #> # I don't trust the returned data, some stuff like 'alias' shows up for groups. To unify it with everything else... using my own function - $PermissionAccount = Get-WinADObject -Identity $GPOPermission.Trustee.Sid.Value -AddType -Cache + $PermissionAccount = Get-WinADObject -Identity $GPOPermission.Trustee.Sid.Value -AddType -Cache -Verbose:$false if ($PermissionAccount) { $UserNameDomain = $PermissionAccount.DomainName $UserName = $PermissionAccount.Name @@ -214,7 +214,7 @@ if ($IncludeOwner) { if ($GPO.Owner) { # I don't trust the returned data, some stuff like 'alias' shows up for groups. To unify it with everything else... using my own function - $OwnerAccount = Get-WinADObject -Identity $GPO.Owner -AddType -Cache + $OwnerAccount = Get-WinADObject -Identity $GPO.Owner -AddType -Cache -Verbose:$false if ($OwnerAccount) { $UserNameDomain = $OwnerAccount.DomainName $UserName = $OwnerAccount.Name