DSQUERY - How to find a username on a Domain Controller based only on the last name
Windows Server - Domain Controller - DSQUERY - Find Username
- Let's say you only know the user surname but you need to find his actual username in the domain controller
- Open CMD
- Run the following command
- Let’s say the user Surename is Birk
dsquery user -name *Birk -o upn
dsquery user -name *Birk - this command will give you more information as it comes to domain controller etc.
dsquery user -name *Birk -o rdn
Comments
Post a Comment