Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit 510cba8

Browse files
committed
Added displayname to the default filter set for Get-DomainObject[ACL]
1 parent 8a2e1da commit 510cba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Recon/PowerView.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6092,7 +6092,7 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
60926092
$IdentityFilter += "(|(samAccountName=$IdentityInstance)(name=$IdentityInstance)(dnshostname=$IdentityInstance))"
60936093
}
60946094
else {
6095-
$IdentityFilter += "(|(samAccountName=$IdentityInstance)(name=$IdentityInstance))"
6095+
$IdentityFilter += "(|(samAccountName=$IdentityInstance)(name=$IdentityInstance)(displayname=$IdentityInstance))"
60966096
}
60976097
}
60986098
}
@@ -6793,7 +6793,7 @@ Custom PSObject with ACL entries.
67936793
$IdentityFilter += "(|(samAccountName=$IdentityInstance)(name=$IdentityInstance)(dnshostname=$IdentityInstance))"
67946794
}
67956795
else {
6796-
$IdentityFilter += "(|(samAccountName=$IdentityInstance)(name=$IdentityInstance))"
6796+
$IdentityFilter += "(|(samAccountName=$IdentityInstance)(name=$IdentityInstance)(displayname=$IdentityInstance))"
67976797
}
67986798
}
67996799
}

0 commit comments

Comments
 (0)