Forum Discussion
Salamat_Shah
Nov 09, 2024Iron Contributor
Hybrid Exchange email removal
As we know, a script can be used to remove specific emails from a user’s mailbox. However, if the email subject contains multiple emails and we need to remove a specific one without knowing the content, how can we accurately achieve this? Especially in the hybrid exchange when we have mailboxes on premises
- randierikoCopper Contributor
you can use search mailbox then use where-object pipelining that use -like operator.
- Salamat_ShahIron Contributor
Rendiriko, for standard searches, the 'like' operator works fine. However, is there an authentic shell command that can help streamline the process and save time and effort?