Search-Mailbox -Identity "April Stewart" -SearchQuery 'Subject:"Your bank statement"' -DeleteContentBut you get this error message :
The Term “Search-Mailbox” Is Not Recognized as the Name of a cmdletSolution : You have to register the Exchange Management Powershell Snapin
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
Aucun commentaire:
Enregistrer un commentaire