tguy Posted October 8, 2011 Share Posted October 8, 2011 I am looking for help writing a vbScript or batch file that will use something like ADO, ADSystemInfo or dsquery and dsget to bind to my domain and enumerate a list of all groups in the domain with two or less members in the group. Once the list of groups is obtained I would like to write the results to a text file showing:1) Group Name and FQDN2) Group Members3) Date CreatedWe are in the process of cleaning up our Active Directory with old, unused or obsolete objects and this is part of that effort.Thanks in advance for your help. Link to comment Share on other sites More sharing options...
allen2 Posted October 8, 2011 Share Posted October 8, 2011 (edited) I'd export all groups (of course as i don't know you ad structure, it could be the worst approach if your ad contains a lot of groups) with adfind or a dsquery and their members, then count each the number of members in each groups.But perhaps it might be doable with as single dsquery -filter and the right ldap request. Edited October 8, 2011 by allen2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now