Hi All
I am getting the below error using search mailbox syntax. my requirement is external user has sent an email to user user1@contoso.com i want to know in which folders the emails reside in user1@contoso.com. how can i get this information from content search or powershell
Search-Mailbox -Identity sender@externaldomain.com -SearchQuery {From:"user1@contoso.com" AND Received:"05/01/2021 00:00..05/25/2021 23:59"} -TargetMailbox "myuser@contoso.com" -TargetFolder "search" -LogOnly -LogLevel Full
WARNING: WARNING: On July 1, 2020, the Search-Mailbox cmdlet is being retired and Microsoft Support will no longer
provide assistance. See https://go.microsoft.com/fwlink/?linkid=2113221 to learn more.
WARNING: The Search-Mailbox cmdlet returns up to 10000 results per mailbox if a search query is specified. To return
more than 10000 results, use the New-MailboxSearch cmdlet or the In-Place eDiscovery & Hold console in the Exchange
Administration Center.
Cannot save changes made to an item to store.
+ CategoryInfo : InvalidArgument: (:) [], ObjectNotFoundException
+ FullyQualifiedErrorId : [Server=UA2PR08MB9876,RequestId=j87904abc-fg67-1234-85u8-67yui2kloiuy,TimeStamp=6/8/2021 3:06:36 AM] [FailureCategory=Cmdlet-ObjectNotFoundException] 615347DB
+ PSComputerName : outlook.office365.com