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

Commit d4166f8

Browse files
committed
bug fix for Get-DomainObject/Get-DomainObjectACL
1 parent 6c113b7 commit d4166f8

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
@@ -6074,7 +6074,7 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
60746074
elseif ($IdentityInstance -match '^S-1-.*') {
60756075
$IdentityFilter += "(objectsid=$IdentityInstance)"
60766076
}
6077-
elseif ($IdentityInstance -match '^(CN|OU)=.*') {
6077+
elseif ($IdentityInstance -match '^(CN|OU|DC)=.*') {
60786078
$IdentityFilter += "(distinguishedname=$IdentityInstance)"
60796079
}
60806080
else {
@@ -6774,7 +6774,7 @@ Custom PSObject with ACL entries.
67746774
if ($IdentityInstance -match '^S-1-.*') {
67756775
$IdentityFilter += "(objectsid=$IdentityInstance)"
67766776
}
6777-
elseif ($IdentityInstance -match '^(CN|OU)=.*') {
6777+
elseif ($IdentityInstance -match '^(CN|OU|DC)=.*') {
67786778
$IdentityFilter += "(distinguishedname=$IdentityInstance)"
67796779
}
67806780
else {

0 commit comments

Comments
 (0)