Active Directory: find the user’s DN path

This short post will show how to find the User Base DN, which could be difficult or at least, subject to errors.

  1. Connect to a Directory Controller using Powershell
  2. Run the following command, where pattern is the name or the part of the user name you know (s* to get all user with a name starting with an s, etc.)
dsquery user -name *pattern*

Leave a Reply