1. 程式人生 > >在多個郵件服務器上查看郵件跟蹤日誌

在多個郵件服務器上查看郵件跟蹤日誌

art 定時 eventid ast ans con 分解 zha chan

命令分解:

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

在多個郵件服務器上查看郵件跟蹤日誌