cgooden01
asked on
Script to find Only empty OU and subOU's nested in a particular OU structure
Looking for the most accurate way to find all empty OU and nested Ones within my AD Structure. I dont want the entire forest/domain. Just inside a particular delegated OU. I have tried many different ways, but when I do a cross-check of the data it is not accurate.
Cannot use any Third Party tools.
Cannot use any Third Party tools.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i.e
adfind -b ou=<Require OU to search>,dc=<Yourdomain>,dc=com -f "(objectCategory=*)" -c