Link to home
Create AccountLog in
Avatar of leop1212
leop1212Flag for United States of America

asked on

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

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 ?
Avatar of Saif Shaikh
Saif Shaikh
Flag of India image

Try below from EMS

get-mailpublicfolder "test@mydomain.com" | get-publicfolder
Avatar of leop1212

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of Saif Shaikh
Saif Shaikh
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer