Commands › Exchange Online

Set-ReportSubmissionRule

Exchange Online ExchangeOnlineManagement Set-*

Modify the report submission rule in your cloud-based organization. The report submission rule identifies the reporting mailbox where user reported messages are delivered.

Quick start script

# Set-ReportSubmissionRule — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-ReportSubmissionRule
$before | Format-List

# 3. Make the change (dry run first)
Set-ReportSubmissionRule -Identity <RuleIdParameter> -WhatIf
Set-ReportSubmissionRule -Identity <RuleIdParameter>

# 4. Verify and diff
$after = Get-ReportSubmissionRule
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-ReportSubmissionRule [-Identity] <RuleIdParameter>
 [-Comments <String>]
 [-Confirm]
 [-Name <String>]
 [-ReportSubmissionPolicy <ReportSubmissionPolicyIdParameter>]
 [-SentTo <RecipientIdParameter[]>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-Identity RuleIdParameter yes The Identity parameter specifies the report submission rule that you want to modify. The default rule is named DefaultReportSubmissionRule.
-Comments String The Comments parameter specifies informative comments for the rule, such as what the rule is used for or how it has changed over time. The length of the comment can't exceed 1024 characters.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-Name String The Name parameter specifies the name of the report submission rule. When the rule is automatically created, the name of the rule is DefaultReportSubmissionRule. We recommend using this value to avoid confusion.
-ReportSubmissionPolicy ReportSubmissionPolicyIdParameter The ReportSubmissionPolicy parameter specifies the report submission policy that's associated with this rule. The only available policy is named DefaultReportSubmissionPolicy.
-SentTo RecipientIdParameter[] The SentTo parameter specifies the email address of the reporting mailbox in Exchange Online where user reported messages are sent.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.