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 ?
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?
get-mailpublicfolder "test@mydomain.com" | get-publicfolder