重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
$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
}