bug fix for Get-DomainObject/Get-DomainObjectACL

This commit is contained in:
HarmJ0y
2017-01-11 15:55:35 -05:00
parent 6c113b7956
commit d4166f80d4
+2 -2
View File
@@ -6074,7 +6074,7 @@ The raw DirectoryServices.SearchResult object, if -Raw is enabled.
elseif ($IdentityInstance -match '^S-1-.*') {
$IdentityFilter += "(objectsid=$IdentityInstance)"
}
elseif ($IdentityInstance -match '^(CN|OU)=.*') {
elseif ($IdentityInstance -match '^(CN|OU|DC)=.*') {
$IdentityFilter += "(distinguishedname=$IdentityInstance)"
}
else {
@@ -6774,7 +6774,7 @@ Custom PSObject with ACL entries.
if ($IdentityInstance -match '^S-1-.*') {
$IdentityFilter += "(objectsid=$IdentityInstance)"
}
elseif ($IdentityInstance -match '^(CN|OU)=.*') {
elseif ($IdentityInstance -match '^(CN|OU|DC)=.*') {
$IdentityFilter += "(distinguishedname=$IdentityInstance)"
}
else {