user_filter

How to filter users in Active Directory

View on GitHub

User filter

How to filter users based on the criteria enabled or disabled

Active Directory Users and Computers

  1. Menu: “View”

  1. Select: “Filter Options…”

  1. Choose: “Create custom filter” and Click: “Customize…”

  1. Select tab: “Advanced”

  1. Write: “Enter LDAP query:” (text in the subsections below)

  1. Click: “OK”
  2. Click: “OK”

Enabled users

(!UserAccountControl:1.2.840.113556.1.4.803:=2)

Disabled users

UserAccountControl:1.2.840.113556.1.4.803:=2

Inspitarion for this guide took from here