header image

Which filter

Posted by: | January 27, 2016 Comments Off on Which filter |

Get-ADUser has 2 filter parameters.

The –Filter takes a PowerShell syntax filter e.g.

Get-ADUser -Filter {Name -eq ‘Richard’}

The –LDAPfilter takes an LDAP search filter e.g.

Get-ADUser -LDAPFilter "(Name=Richard)"

Mixing them up will ensure you don’t get the results you want

under: PowerShell and Active Directory

Comments are closed.

Categories