Colleagues, we need help with PowerShell for Exchange:
Trying to search for and then delete mail within the mail system.
This is a very basic task, but has been made more difficult by the fact that the body of the e-mail I am searching for has a "+" character in the text.
Get-Mailbox -Identity "user" | Search-Mailbox -SearchQuery body: 'Машина+' -EstimateResultOnly | export-csv -Delimiter ";" -encoding UTF8 C:\temp\test.csv
You need the right syntax for the team that searches the mailbox for content, given that the search query has a "+" sign.
There are letters with text in the box:
Of these, for example, you only need to find
And in a separate search.