July 2017
Intermediate to advanced
648 pages
31h 9m
English
Of course, permanently deleting data from someone's mailbox is not something that should be done without total confidence. If you are unsure of the results or if you just want to cover your bases, you can use the following syntax to generate a report of the items that will be deleted:
Get-Mailbox | ` Search-Mailbox -SearchQuery "from:spammer@contoso.com" ` -EstimateResultOnly | Export-CSV C:report.csv -NoType
This example uses the -EstimateResultOnly parameter when executing the Search-Mailbox cmdlet. You can see here that we are executing a one-liner that will search each mailbox for messages sent from spammer@contoso.com. The estimate of the result is exported to a CSV file that you can use to determine ...
Read now
Unlock full access