I am trying to run a powershell commandlet from the Exchange Management shell, I have Exchange 2010.
This is the command:
Search-Mailbox -Identity "<user>" -SearchQuery 'Subject:"<subject_title>"' -DeleteContent
my respoinse is always:
A positional parameter cannot be found that accepts argument '-DeleteContent'.
+ CategoryInfo : InvalidArgument: (:) [Search-Mailbox], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Search-Mailbox
I do not know what I am doing wrong. All my research suggests that this should work.