Exchange 2010 SP1批量删除特定邮件

确保微软搜索分析器"服务正常运行。

删除单个邮箱中的邮件:Search-Mailbox –Identity “test3”-SearchQuery "Subject:'test email'" –DeleteContent

删除多个邮箱中的邮件:Get-Mailbox |Search-Mailbox -SearchQuery "Subject:'test email'" -DeleteContent    

 

Exchange 2010 SP1中,Search-Mailbox命令包含了“DeleteContent”参数。比如,删除邮箱中的特定邮件,可是使用如下命令:

 

Search-Mailbox -Identity "April Stewart" -SearchQuery "Subject:'Your bank statement'" -DeleteContent

 

你可能感兴趣的:(Exchange 2010 SP1批量删除特定邮件)