Ok, appreciate the scripts but I can't seem to get them to run. I am (sadly) not a scripting person so maybe I'm doing something wrong... but I cut and pasted into notepad, saved as vbs, ran the command as documented (starting with cscript...), and on both scripts I receive the error message:
groups.vbs(42, 1) Microsoft VBScript compilation error: Syntax error.
(of course it has the other script name for the other script).
Can anyone point me in the right direction? The only thing I'm not sure of is whether I'm doing the domain naming context correctly, but I think I am. For example, if our domain is tom.dick.harry.com, i'm using dc=tom, dc=dick, dc=harry, dc=com for that. Thanks in advance for any tips!