Hi @create share
You can use the following command to copy emails of a specific subject to the SearchResults folder of the administrator mailbox. Note that by default Search-Mailbox is available only in the Mailbox Search or Mailbox Import Export roles, and these roles aren't assigned to any role groups. To use this cmdlet, you need to add one or both of the roles to a role group (for example, the Organization Management role group). Only the Mailbox Import Export role gives you access to the DeleteContent parameter.
Get-Mailbox -ResultSize Unlimited | Search-Mailbox -SearchQuery 'Subject: "specific subject"' -TargetMailbox Administrator -TargetFolder "SearchResults"
You can export the SearchResults folder as a pst file with the New-MailboxExportRequest command.
New-MailboxExportRequest -Mailbox Administrator -FilePath "UNC path" -IncludeFolders "SearchResults\*"
See the link below for more details.
https://learn.microsoft.com/en-us/powershell/module/exchange/search-mailbox?view=exchange-ps
Best Regards,
Dezhi
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".