You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$GroupDN is not set. The GroupDN output further down is set via $membership. $GroupDN is always $null. Therefore this comparison is always true and all users are listed.
If comparing against the $DistinguishedDomain the $GroupDN needs to be stripped down to the domain.
I fixed it with the following route:
$GroupDomain needs to be moved above the if statement
if $GroupDomain.CompareTo($Domain)
Sorry cant submit a PR at the moment.
The text was updated successfully, but these errors were encountered:
Thanks! Just noticed this on an engagement actually. The fix should be pushed to https://github.com/Veil-Framework/PowerTools/tree/powerview_group_recurse , will test tomorrow and then merge into master. FYI Get-NetGroup now has a -Recurse flag that resolves any returned members that are groups as well.
The following logic in this method appears to be incorrect:
A number of issues are here:
I fixed it with the following route:
if $GroupDomain.CompareTo($Domain)
Sorry cant submit a PR at the moment.
The text was updated successfully, but these errors were encountered: