Commands › Exchange Online
New-MailboxRepairRequest
Detect and fix mailbox corruption issues.
Quick start script
# New-MailboxRepairRequest — 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-MailboxRepairRequest
$before | Format-List
# 3. Make the change (dry run first)
New-MailboxRepairRequest -Database <DatabaseIdParameter> -Mailbox <MailboxIdParameter> -CorruptionType <MailboxStoreCorruptionType[]> -WhatIf
New-MailboxRepairRequest -Database <DatabaseIdParameter> -Mailbox <MailboxIdParameter> -CorruptionType <MailboxStoreCorruptionType[]>
# 4. Verify and diff
$after = Get-MailboxRepairRequest
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 2 parameter sets
Database
New-MailboxRepairRequest [-Database] <DatabaseIdParameter> -CorruptionType <MailboxStoreCorruptionType[]> [[-StoreMailbox] <StoreMailboxIdParameter>]
[-Confirm]
[-DetectOnly]
[-DomainController <Fqdn>]
[-Force]
[-WhatIf]
[<CommonParameters>]
Mailbox
New-MailboxRepairRequest [-Mailbox] <MailboxIdParameter> -CorruptionType <MailboxStoreCorruptionType[]>
[-Archive]
[-Confirm]
[-DetectOnly]
[-DomainController <Fqdn>]
[-Force]
[-WhatIf]
[<CommonParameters>]
Parameters (10)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.