question

GaetanMeisterAdmin-9352 avatar image
0 Votes"
GaetanMeisterAdmin-9352 asked

Search all emails where subject matching a certain pattern

We have a hybrid environment and migrated all our mailboxes to M365

I was tasked with the following

  • Search for all email where subject containing a certain pattern [T1#] and append the subject with extra information [T1#INS]

I'm unsure as to how to accomplish this best through POSH and would like some recommendations where to start

Thanks in advance

office-exchange-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

michev avatar image
1 Vote"
michev answered

There's no way to modify the subject of a message via PowerShell, you will need to use EWS/Graph API for this. The search part can be done via eDiscovery/Content search: https://docs.microsoft.com/en-us/microsoft-365/compliance/content-search?view=o365-worldwide

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.