User Tools

Site Tools


microsoft:activedirectory:ldap:queries

Microsoft - Active Directory - LDAP - Queries

Examples

All active users with mailbox

(&(objectCategory=user)(homeMDB=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

All disabled users with mailbox

(&(objectCategory=user)(homeMDB=*)(userAccountControl:1.2.840.113556.1.4.803:=2))

All users with Password never expires ON

(&(objectCategory=user)(userAccountControl:1.2.840.113556.1.4.803:=65536))

All users with Password never expires OFF

(&(objectCategory=user)(!(userAccountControl:1.2.840.113556.1.4.803:=65536)))

All Domain Controllers

(&(objectCategory=computer)(userAccountControl:1.2.840.113556.1.4.803:=8192))

Source:SelfADSI - How to search and find Active Directory domain controllers

microsoft/activedirectory/ldap/queries.txt · Last modified: 2015/10/27 12:32 by bas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki