其他分享
首页 > 其他分享> > Exchange删除邮件

Exchange删除邮件

作者:互联网

多条件过滤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

标签:Search,SearchQuery,删除,Exchange,Get,Mailbox,im,com,邮件
来源: https://blog.51cto.com/magic3/2619089