Monthly Archive

Categories

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

Comments are closed.