From 01baefda81b71bc18e07d83b4da1f416eb3c46e9 Mon Sep 17 00:00:00 2001 From: Arindam Thokder <42777416+arindamthokder@users.noreply.github.com> Date: Mon, 13 Oct 2025 19:49:08 +0530 Subject: [PATCH 1/2] Modify Test-Message 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). From e5ea5aee72a48f83beb8e67f67306b888086c607 Mon Sep 17 00:00:00 2001 From: Chris Davis Date: Mon, 13 Oct 2025 09:01:45 -0700 Subject: [PATCH 2/2] Update Test-Message.md --- exchange/exchange-ps/ExchangePowerShell/Test-Message.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exchange/exchange-ps/ExchangePowerShell/Test-Message.md b/exchange/exchange-ps/ExchangePowerShell/Test-Message.md index 784cff7abf..5c20cf21d4 100644 --- a/exchange/exchange-ps/ExchangePowerShell/Test-Message.md +++ b/exchange/exchange-ps/ExchangePowerShell/Test-Message.md @@ -43,10 +43,10 @@ Test-Message -Recipients -SendReportTo ] ``` -> [!NOTE] -> Test-Message command must be run with either -TransportRules or -UnifiedDlpRules switch. ## DESCRIPTION +You need to run this cmdlet with the TransportRules or UnifiedDlpRules switch. + 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). ## EXAMPLES