Загрузка...

How to Query Active Directory using LDAP Search Filters

This video explains how to use LDAP queries to search Active Directory for specific users, groups, or computers in a domain that match your criteria. We will use various tools to run LDAP queries against AD, such as PowerShell, ADUC Saved Queries, and the ADSI Edit snap-in.

Read full tutorial on TheITBros:
https://theitbros.com/ldap-query-examples-active-directory/

📋 Used commands:

Open ADUC console:
dsa.msc

Run ADSI Edit:
adsiedit.msc

Example of an LDAP query that can be used to find Active Directory users with the “User must change password at next logon” option enabled:
(objectCategory=person)(objectClass=user)(pwdLastSet=0)(!useraccountcontrol:1.2.840.113556.1.4.803:=2)

Execute LDAP Query via PowerShell:
Get-ADComputer –LDAPFilter ‘your ldap query’
Get-ADUser –LDAPFilter ‘your ldap query’
Get-ADObject –LDAPFilter ‘your ldap query’

#activedirectory #powershell #windows #sysadmin #itpro #TheITBros

Видео How to Query Active Directory using LDAP Search Filters канала TheITBros
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять