命令分解:

1、获取组织内的所有邮件服务器

$Servers = Get-ExchangeServer

2、获取 HUB 服务器

$Servers | where {$_.isHubTransportServer -eq $true -or $_.isMailboxServer -eq $true}

3、查询指定时间 master 到zhaodongwei 发送成功的邮件

Get-MessageTrackingLog -Sender [email protected] -Start "2018-8-28 6:40:00" -Recipients [email protected] -EventId "DELIVER"

在多个邮件服务器上查看邮件跟踪日志

$Servers = Get-ExchangeServer; $Servers | where {$_.isHubTransportServer -eq $true -or $_.isMailboxServer -eq $true} | Get-MessageTrackingLog -Sender [email protected] -Start "2018-8-28 6:40:00" -Recipients [email protected] -EventId "DELIVER"

参考文档:
https://docs.microsoft.com/zh-cn/exchange/mail-flow/transport-logs/search-message-tracking-logs