Find where an email or proxy address is used in Active Directory using PowerShell

Problem:

I needed to find where a particular email address was being using within Active Directory as it had been duplicated.  I needed to find it using PowerShell.

Solution:

Get-ADObject -Properties mail, proxyAddresses -Filter {mail -eq "accounts@earthport.com" -or proxyAddresses -eq "smtp:accounts@earthport.com"} 

5 Replies to “Find where an email or proxy address is used in Active Directory using PowerShell”

  1. If you don’t know the specific email address but only know a partial, I found this to be helpful:

    Get-ADObject -Properties mail, proxyAddresses -Filter {mail -like “*accounts*” -or proxyAddresses -like “*accounts*”}

Leave a Reply

Your email address will not be published. Required fields are marked *