How to find the LDAP connection string of an AD User / Group with Powershell

This is simply for my personal reference as I am always confused on finding it as part of my projects, and I always forget what to search. So the answer is just a copy from Server Fault

Type dsquery /? in a command prompt.

dsquery user -name Ja*
dsquery group -name Admins