dsquery - command line tool to query AD LDAP attributes.
dsquery user -name "*Mark*"
Running a command as another user
runas /user:username command
Categories: Microsoft Windows | LDAP