

You can also use LDAP query filter in the following PowerShell cmdlets: Get-ADUser, Get-ADComputer, Get-ADGroup, and Get-ADObject (these cmdlets are part of the Active Directory PowerShell module). A list of AD users that match this LDAP query should display on the right pane.Click OK twice, select your new query in the ADUC Saved Queries tree, and press F5.Select the Custom Search type, go to the Advanced tab, and copy your LDAP query code into the Enter LDAP query field.Specify a name for the new saved query and click the Define Query button.Open the ADUC console and go to the Saved Queries section.


Let’s try to execute this LDAP query using the ADUC console.
