I have a set of 10 AD groups. What I'd like is to programmatically find out which users in the AD domain are NOT members of those 10 groups. There is only one domain. I know it's possible to perform ADO SQL queries in a vbscript but I was wondering (hoping, praying) if someone had a canned script?
I suppose a hacky way might be:
- Dump all users from the 10 groups
- Dump all users from the domain
- Run a windiff on the 2 dumps
Any ideas?