Adfind: Querying Active Directory made easy
List all AD user accounts matching a string: C:>adfind -b DC=Test,DC=com -f “(&(objectcategory=user)(name=*govardhan*))” displayname AdFind V01.42.00cpp Joe Richards ([email protected]) April 2010 Using server: test.domain.com:389 Directory: Windows Server 2008 dn:CN=Govardhan g.,OU=TestUsers,DC=test,DC=com >displayName: Govardhan g. 1 Objects returned C:> — — List all computer (server) accounts whose operating system matching certain string: C:>adfind -b DC=Test,DC=com -f “(&(objectcategory=computer)(OperatingSystem=server*2008*r2))” operatingsystem AdFind V01.42.00cpp Joe Richards ([email protected]) April 2010 Using server: test.domain.com:389 Directory: Windows Server 2008 dn:CN=W2K81049,CN=Computers,DC=test,DC=com >operatingSystem: Windows Server 2008 R2 Enterprise 1 Objects returned C:> List all members of a AD group: C:>adfind -b DC=Test,DC=com -f “(&(objectcategory=group)(name=*_tech))” member | cut -d”,” -f1 | cut […]
Read more