I came across the fantastic script in the thread above, but I would like to tailor this so that it lists distribution groups only. I don't have the technical know-how to achieve this task, could somebody suggest/assist?
And at the place of the filter used in the demonstration in it:
[tt] (&(objectCategory=person)(objectClass=User)(userAccountControl:1.2.840.113556.1.4.803:=2))[/tt]
replace it instead with the filter to exclude (!) all groups with security enabled flag (&H80000000) set to on.
[tt] (&(objectCategory=group)(!groupType:1.2.840.113556.1.4.803:=2147483648))[/tt]
And that's all you need. The other data and needs are privy to you, only yourself know such as the domain name and what you need to return as properties etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.