다음을 통해 공유


Windows Server - ADDS : Custom LDAP Search-GUI

Steps

Open DSA.MSC and click Saved Queries-> New

New-> Query

Click Define Query

Put in your Query

Done.

Custom LDAP Quries

Server 2008 R2 Standard

(&(objectCategory=computer)(operatingSystem=Windows Server 2008 R2 Standard))

Windows Server 2008 R2 Enterprise

(&(objectCategory=computer)(operatingSystem=Windows Server 2008 R2 Enterprise))

Windows Server 2003

(&(objectCategory=computer)(operatingSystem=Windows Server 2003*))

Windows Server 2012 R2 Standard

(&(objectCategory=computer)(operatingSystem=Windows Server 2012 R2 Standard))

Windows Server 2012 R2 Enterprise

(&(objectCategory=computer)(operatingSystem=Windows Server 2012 R2 Enterprise))

Windows Server 2012

(&(objectCategory=computer)(operatingSystem=Windows Server 2012*))

Disabled Users

(&(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=2))

LDAP Query to Find Enabled Users

(&(objectCategory=person)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

Users who have never logged into the domain:

(&(objectCategory=person)(objectClass=user))(|(lastLogon=0)(!(lastLogon=*)))