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
dsquery /? in a command prompt.
dsquery user -name Ja* dsquery group -name Admins