Query LDAP on Windows using built-in GUI tool

Built-in LDAP tool on Windows

During an assessment I was able to get PowerShell on a box, but it was limited by the Domain Admins and it was not allowed to retrieve information about users from the domain.

Using net user /domain was not allowed and was returning the following error.

PS C:\> net user /domain
The request will be processed at a domain controller for domain DOMAINNAME.

System error 5 has occurred.

Access is denied.

Because I wanted to go through the description field, in case a password is pasted there by accident, I remembered of this useful tool. After running the command below, it displayed the Windows LDAP query tool, which made the process really smooth. This tool can be also useful for red teaming exercises.

C:\Windows\System32\rundll32.exe dsquery.dll,OpenQueryWindow

Was this post helpful?