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

VBA Randomize a 3x3 Filter for Convoluted Neural Network

Adding IQ Driver to LINQPad and connecting to ORACLE Database

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