Find a object with a smtp address

I have an smtp address and I want to know who owns this address,  a mailbox or a public folder or a distribution list?

Is there a powershell command that has solved it?
dgswinAsked:
Who is Participating?
 
Jamie McKillopConnect With a Mentor IT ManagerCommented:
Hello,

Run these commands:

Get-Mailbox -Filter {EmailAddresses -like '*smtp@domain.com*'}
Get-MailContact -Filter {EmailAddresses -like '*smtp@domain.com*'}
Get-DistributionGroup -Filter {EmailAddresses -like '*smtp@domain.com*'}
Get-MailPublicFolder -Filter {EmailAddresses -like '*smtp@domain.com*'}

-JJ
0
 
dgswinAuthor Commented:
Thank you!

It's work!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.