Would you like to learn how to perform queries on an LDAP server using Powershell? In this tutorial, we are going to show you how to use Powershell to perform LDAP queries on the Active Directory using the command line.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – Perform LDAP query on Active Directory
Start a Powershell command-line.
Query the Active Directory server using LDAP and Powershell.
Here is the command output.
Configure the search root and perform the LDAP query.
There are multiple ways to configure the search root.
Apply filters to the LDAP query.
There are multiple ways to apply filters to the LDAP query.
Here is the command output.
Apply advanced filters to the LDAP query.
Here is the command output.
Get the properties of an LDAP object using Powershell.
Here is the command output.
Get specific properties of an LDAP object using Powershell.
Here is the command output.
Optionally, display the results as a list.
Here is the command output.
Congratulations! You are able to perform LDAP queries on the Active Directory using Powershell.