Rule Sweep

Compare two Exchange Online inbox-rule exports and copy the changes into a service ticket.

Compare snapshots

Use exports from the same tenant and mailbox set. Each file must be a UTF-8 CSV up to 5 MiB.

Earlier snapshot

Drop the older CSV here.

No file selected.

Later snapshot

Drop the newer CSV here.

No file selected.

This page processes your files in this browser. It sends no file contents to a server.

Choose or drop both snapshots to compare them.
PowerShell export recipe

In your existing Exchange Online PowerShell session, replace the example mailbox addresses with the primary SMTP addresses for your fixed mailbox set. Run the same recipe for both captures. Set a different output path for each capture.

$mailboxes = @('review@example.test', 'service@example.test')
$outputPath = './earlier-snapshot.csv'

try {
    $rows = @(
        foreach ($mailbox in $mailboxes) {
            foreach ($rule in (Get-InboxRule -Mailbox $mailbox -ErrorAction Stop)) {
                [pscustomobject][ordered]@{
                    Mailbox      = $mailbox
                    RuleIdentity = [string]$rule.RuleIdentity
                    Name         = $rule.Name
                    Enabled      = $rule.Enabled
                    Priority     = $rule.Priority
                    Description  = $rule.Description
                }
            }
        }
    )

    if ($rows.Count -eq 0) {
        Set-Content -LiteralPath $outputPath -Encoding utf8 -Value 'Mailbox,RuleIdentity,Name,Enabled,Priority,Description'
    } else {
        $rows | Export-Csv -LiteralPath $outputPath -NoTypeInformation -Encoding utf8
    }
} catch {
    throw
}

If a mailbox query fails, the recipe stops before writing the CSV. Correct the query failure and rerun the capture. A successful capture with zero rules writes the header only.

Worked example

Download both synthetic snapshots, then choose each file in its matching slot above. Compare your result with the expected ticket text below.

Expected ticket text

Inbox rule changes
Added: 1  Changed: 1  Removed: 1

Mailbox: review@example.test
Added rule "9007199254740994"
  Name: "Keep receipts"
  Enabled: "True"
  Priority: "002"
  Description: "Move receipts, tagged \"travel\"\nto Receipts"

Changed rule "9007199254740993"
  Name:
    Earlier: "Project notes"
    Later: "Project updates"
  Enabled:
    Earlier: "True"
    Later: "False"

Mailbox: service@example.test
Removed rule "9007199254740993"
  Name: "Sort vendor notices"
  Enabled: "True"
  Priority: "1"
  Description: "Move to Vendor Notices"

Comparison covers the exported fields for the mailbox scope supplied with the two snapshots.

See it work

See which inbox rules were added, changed or removed, ready to paste into a service ticket.
See which inbox rules were added, changed or removed, ready to paste into a service ticket.
Confirm that two captures have no changes in the exported fields.
Confirm that two captures have no changes in the exported fields.

More pictures, and how Rule Sweep works