Another 2 useful scripts:
Find distribution lists and their managers:
dsquery * -filter "(&(samAccountType=268435457)(managedBy=*))" -Attr sAMAccountName managedBy -Limit 0
Find all groups which have managers:
dsquery * -filter "(&(objectclass=group)(managedBy=*))" -Attr sAMAccountName managedBy -Limit 0
Thursday, October 9, 2008
Subscribe to:
Posts (Atom)