We help IT Professionals succeed at work.

How to find mail enabled  public folder or a mailbox with an with a certain email address?

leop1212
leop1212 used Ask the Experts™
on
I have an object in my exchange 2016 on premise server with email address test@mydomain.com
could you provide a cyntax on how I can find which object has this email address assigned -test@mydomain.com ?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Saif ShaikhServer engineer

Commented:
Try below from EMS

get-mailpublicfolder "test@mydomain.com" | get-publicfolder

Author

Commented:
when I ran your command it returns me an error below
The operation couldn't be performed because object 'test@mydomain.com' couldn't be found on 'dccontroller.mydomain.com'.
    + CategoryInfo          : NotSpecified: (:) [Get-MailPublicFolder], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=EXCH2016,RequestId=2f671dbd-6436-47ab-a16e-0625504a6300,TimeStamp=12/10/2019 1
   :37:05 PM] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] CC36F1DC,Microsoft.Exchange.Management.MapiT
  asks.GetMailPublicFolder
    + PSComputerName        : exch2016.mydomain.com

what is the syntax to check shared mailbox for such address?
Server engineer
Commented:
The operation couldn't be performed because object 'test@mydomain.com' couldn't be found on 'dccontroller.mydomain.com'.

This means there is no user with email address 'test@mydomain.com' in your environment/DC's

what is the syntax to check shared mailbox for such address?

Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | FL *test@my*