多条件过滤1:
Search-Mailbox -Identity "shizhenning@im.com" -SearchQuery 'Subject:"最近8小时被拦截的疑似
垃圾邮件通知" AND Received>=01/09/2020 AND Received<=01/10/2020' -DeleteContent
多条件过滤2:
Get-DistributionGroupMember it | Get-Mailbox |Search-Mailbox -SearchQuery {Subject:"测试邮件-删
除群发" From:"shizhenning@im.com" recipients:"it@im.com"} -DeleteContent
或者
Get-DistributionGroupMember it | Get-Mailbox |Search-Mailbox -SearchQuery 'Subject:"测试邮件-删
除群发" AND From:"shizhenning@im.com" AND recipients:"it@im.com"' -DeleteContent