Skip to content

Commit ffba35a

Browse files
Clarify Test-Message cmdlet syntax requirements
Updated syntax for Test-Message cmdlet to require -TransportRules or -UnifiedDlpRules switch.
1 parent 4dfddf5 commit ffba35a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

exchange/exchange-ps/ExchangePowerShell/Test-Message.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For information about the parameter sets in the Syntax section below, see [Excha
2323

2424
### TransportRules
2525
```
26-
Test-Message -Recipients <ProxyAddressCollection> -SendReportTo <RecipientIdParameter> [-TransportRules]
26+
Test-Message -Recipients <ProxyAddressCollection> -SendReportTo <RecipientIdParameter> -TransportRules
2727
[-Confirm]
2828
[-Force]
2929
[-MessageFileData <Byte[]>]
@@ -35,14 +35,16 @@ Test-Message -Recipients <ProxyAddressCollection> -SendReportTo <RecipientIdPara
3535

3636
### UnifiedDLPRules
3737
```
38-
Test-Message -Recipients <ProxyAddressCollection> -SendReportTo <RecipientIdParameter> [-UnifiedDlpRules]
38+
Test-Message -Recipients <ProxyAddressCollection> -SendReportTo <RecipientIdParameter> -UnifiedDlpRules
3939
[-Confirm]
4040
[-Force]
4141
[-MessageFileData <Byte[]>]
4242
[-Sender <SmtpAddress>]
4343
[-WhatIf]
4444
[<CommonParameters>]
4545
```
46+
> [!NOTE]
47+
> Test-Message command must be run with either -TransportRules or -UnifiedDlpRules switch.
4648
4749
## DESCRIPTION
4850
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).

0 commit comments

Comments
 (0)