Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active Directory - Return all active users

Status
Not open for further replies.

domgreen

Programmer
Sep 29, 2006
5
GB
Hi guys. I am trying to return all of the users from an active directory that are active (enabled) i.e not inactive, disabled, expired and so on.

I can get a list of disabled users using the bit wise filter but not the other way round.

(userAccountControl:1.2.840.113556.1.4.803:=2)

can anyone help?

Thanks in advance,
Dom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top