Microsoft Services / Others Verifying Active Directory account by command Purpose of the Command The ldapsearch tool is used to query an LDAP directory like Active Directory. In this case, it’s checking whether you’re connected and retrieving user info based …