wcgplc
asked on
How can I export a list of all enabled users from active directory?
How can I export a list of enabled users from active directory to Excel?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
open ADUC (run DSA.MSC) and then explore to saved query, right click on it and create new query.
http://thommck.wordpress.com/2011/03/04/using-saved-queries-to-filter-active-directory-users-and-computers/
open ADUC (run DSA.MSC) and then explore to saved query, right click on it and create new query.
http://thommck.wordpress.com/2011/03/04/using-saved-queries-to-filter-active-directory-users-and-computers/
ASKER
Thanks friend that worked perfect.
Could you advise on a string to export all the disabled users
Could you advise on a string to export all the disabled users
Try this for disabled users.
(&(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=2))
ASKER
yep that worked. Thank you!!
Hello,
I would be interested in this as well. I got the disabled query to work but the enabled one doesn't for some reason.
Capture.JPG
I would be interested in this as well. I got the disabled query to work but the enabled one doesn't for some reason.
Capture.JPG
ASKER