欢迎光临
我们一直在努力

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

命令分解:

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

$Servers = Get-ExchangeServer

2、获取 HUB 服务器

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

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

Get-MessageTrackingLog -Sender master@contoso.com -Start "2018-8-28 6:40:00" -Recipients zhaodongwei@contoso.com -EventId "DELIVER"

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

$Servers = Get-ExchangeServer; $Servers | where {$_.isHubTransportServer -eq $true -or $_.isMailboxServer -eq $true} | Get-MessageTrackingLog -Sender master@contoso.com -Start "2018-8-28 6:40:00" -Recipients zhaodongwei@contoso.com -EventId "DELIVER"

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

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。