Powershell查询多个指定的收件人是否收到特定主题的邮件-成都快上网建站

Powershell查询多个指定的收件人是否收到特定主题的邮件

运行环境:Exchange 2013/2016

通过foreach查询列表中的收件人是否均收到特定主题的邮件

$ErrorActionPreference="SilentlyContinue"
$nameid = Import-Csv D:\scripts\name.csv -Encoding Default
foreach ($n in $nameid)
{
Get-TransportServer | Get-MessageTrackingLog -Sender:monitorn@demo.com -Recipients:$n.name `
-MessageSubject "IT子系统警告" -EventId deliver `
-Start "2016/07/31 12:00:00" -End "2016/08/02 17:36:00" | `
select EventID,timestamp,sender,recipients,messagesubject | `
ft
}

网页题目:Powershell查询多个指定的收件人是否收到特定主题的邮件
本文URL:http://kswjz.com/article/ieccii.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流