在 Exchange 命令行管理程序中运行以下命令,以验证是否为 Exchange 服务器上的所有连接器启用或禁用协议日志记录:
Write-Host “Send Connectors:” -ForegroundColor yellow; Get-SendConnector | Format-List Name,ProtocolLoggingLevel; Write-Host “Receive Connectors:” -ForegroundColor yellow; Get-ReceiveConnector | Format-List Name,TransportRole,ProtocolLoggingLevel; Write-Host “Mailbox Transport Delivery service:” -ForegroundColor yellow; Get-MailboxTransportService | Format-List *ProtocolLoggingLevel; Write-Host “Front End Transport service:” -ForegroundColor yellow; Get-FrontEndTransportService | Format-List *ProtocolLoggingLevel; Write-Host “Transport service and Mailbox Transport Submission service:” -ForegroundColor yellow; Get-TransportService | Format-List *ProtocolLoggingLevel