DSQUERY - How to find a username on a Domain Controller based only on the last name

Windows Server - Domain Controller  -  DSQUERY  - Find Username

  1. Let's say you only know the user surname but you need to find his actual username in the domain controller
  2. Open CMD
  3. Run the following command
  4. 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

Popular posts from this blog

C# - Simple Class Library and how to use it in another project

AWS CLI - INSTALLATION AND CONFIGURATION

Upload a file to a Web server in ASP.NET by using Visual C# .NET