Query LDAP for users, computers, and privileged groups without writing raw filters
Command: Linux copy
windapsearch -d $DOMAIN --dc-ip $DCIP -u $USER -p $PASSWORD -m users
References: