vendredi 7 décembre 2012

Exchange 2010: The Term “Search-Mailbox” Is Not Recognized as the Name of a cmdlet

Problem : Your goal is to search and delete a message from a mailbox on an exchange server 2010 You try this from Technet :
Search-Mailbox -Identity "April Stewart" -SearchQuery 'Subject:"Your bank statement"' -DeleteContent
But you get this error message :
The Term “Search-Mailbox” Is Not Recognized as the Name of a cmdlet
Solution : You have to register the Exchange Management Powershell Snapin
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010

Aucun commentaire:

Enregistrer un commentaire