I'm trying to search for SMTP addresses using an LDAPFilter on ADObject
Get-AdObject -properties * -LDAPFilter "(proxyAddresses=alert.haveibeenpwned@test.edu)"
I understand that some of this is possible with GetADUser and Get-Mailbox, or even with the -Filter with the -anr
command. However for consistency I'd prefer to use native LDAP with the Get-AdObject command.
How can I search a multivalued property, like proxyAddresses using Get-AdObject?