Find a object with a smtp address

dgswin
dgswin used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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

Author

Commented:
Thank you!

It's work!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial