From ffba35a3862432768c45fc3d65c546b22e9fc304 Mon Sep 17 00:00:00 2001 From: Arindam Thokder <42777416+arindamthokder@users.noreply.github.com> Date: Mon, 13 Oct 2025 19:46:28 +0530 Subject: [PATCH] Clarify Test-Message cmdlet syntax requirements Updated syntax for Test-Message cmdlet to require -TransportRules or -UnifiedDlpRules switch. --- exchange/exchange-ps/ExchangePowerShell/Test-Message.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exchange/exchange-ps/ExchangePowerShell/Test-Message.md b/exchange/exchange-ps/ExchangePowerShell/Test-Message.md index 3ec53636f8..784cff7abf 100644 --- a/exchange/exchange-ps/ExchangePowerShell/Test-Message.md +++ b/exchange/exchange-ps/ExchangePowerShell/Test-Message.md @@ -23,7 +23,7 @@ For information about the parameter sets in the Syntax section below, see [Excha ### TransportRules ``` -Test-Message -Recipients -SendReportTo [-TransportRules] +Test-Message -Recipients -SendReportTo -TransportRules [-Confirm] [-Force] [-MessageFileData ] @@ -35,7 +35,7 @@ Test-Message -Recipients -SendReportTo -SendReportTo [-UnifiedDlpRules] +Test-Message -Recipients -SendReportTo -UnifiedDlpRules [-Confirm] [-Force] [-MessageFileData ] @@ -43,6 +43,8 @@ Test-Message -Recipients -SendReportTo ] ``` +> [!NOTE] +> Test-Message command must be run with either -TransportRules or -UnifiedDlpRules switch. ## DESCRIPTION You need to be assigned permissions before you can run this cmdlet. Although this article lists all parameters for the cmdlet, you might not have access to some parameters if they aren't included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see [Find the permissions required to run any Exchange cmdlet](https://learn.microsoft.com/powershell/exchange/find-exchange-cmdlet-permissions).