TMAegisBeta
Thêm quy tắc cho exchange

Microsoft Exchange Server

TMA-EXCHANGE-1.10

Ensure 'Transport Pickup Directory Path' is not set

Trung bìnhCấp 1Tự độngexchange

Mô tả

The Pickup directory is used by the Transport service on Mailbox servers and Edge Transport servers to insert message files directly into the transport pipeline. When properly formatted email message files are copied to the Pickup directory, they are submitted for delivery automatically. It is a legacy feature that can be used by administrators for mail flow testing, or by applications that must... Prints the number of transport services with a PickupDirectoryPath set (expected 0). Run on each Edge Transport server. Run from an Exchange Management Shell or after `Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn`; the audit loads the snap-in itself when Get-ExchangeServer is missing and fails if it cannot.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
$ErrorActionPreference = 'Stop'; if (-not (Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue)) { Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn -ErrorAction Stop }; if (-not (Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue)) { throw 'Exchange Management Shell cmdlets are not available' }; $bad = @(Get-TransportService -ErrorAction Stop | Where-Object { "$($_.PickupDirectoryPath)" -ne '' }); $bad.Count
Đầu ra mong đợi
0

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

Get-TransportService | Set-TransportService -PickupDirectoryPath $null

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
exchangetransport
Tham chiếu
CIS Microsoft Exchange Server 2019 Benchmark v1.0.1 - 1.10 Ensure 'Transport Pickup Directory Path' is not set

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target exchange