When performing bulk local database migrations (New-MoveRequest / New-MigrationBatch) or hybrid onboarding moves to Exchange Online, administrators frequently notice that dozens of move requests sit in the Queued or StalledDueToTarget_MdbReplication state while only a handful of mailboxes move concurrently.
These concurrency limits are governed by the Microsoft Exchange Mailbox Replication Service (MRS) configuration file (MSExchangeMailboxReplication.exe.config). In this updated guide covering Exchange Server 2010, 2016, 2019, and Exchange Server Subscription Edition (SE), we show where MSExchangeMailboxReplication.exe.config is located, which exact XML attributes control concurrent moves, and how to update them across all servers using PowerShell.
Architecture: How MRS Throttles Concurrent Mailbox Migrations
StatusDetail: QueuedStalledDueToTarget_MdbReplication- Default source/target DB caps reached
MSExchangeMailboxReplication.exe.config- Tune
MaxActiveMovesPerSourceMDB - Tune
MaxActiveMovesPerTargetMDB
Restart-Service MSExchangeMailboxReplication- Use
-Priority Emergencyfor VIPs - Monitor DAG `CopyQueueLength` during burst
Default MSExchangeMailboxReplication.exe.config File Location & Values
Parameter in <MRSConfiguration> | Exchange 2010 Default | Exchange 2016 / 2019 / SE Default | Recommended High-Throughput Migration Value |
|---|---|---|---|
| Config File Path | C:\Program Files\Microsoft\Exchange Server\V14\Bin\ | C:\Program Files\Microsoft\Exchange Server\V15\Bin\ ($env:ExchangeInstallPath\Bin\) | Always back up .config before editing |
MaxActiveMovesPerSourceMDB | 5 (or 2 on throttled profiles) | 20 | 50 – 100 |
MaxActiveMovesPerTargetMDB | 2 | 20 | 50 – 100 |
MaxActiveMovesPerSourceServer | 50 | 100 | 150 – 200 |
MaxActiveMovesPerTargetServer | 5 | 100 | 150 – 200 |
MaxTotalRequestsPerMRS | 100 | 100 | 200 – 300 |

Method 1: Automated PowerShell Script to Update MSExchangeMailboxReplication.exe.config
Instead of manually opening Notepad on every Exchange server in your DAG, run this PowerShell script as Administrator in the Exchange Management Shell (EMS) to automatically back up MSExchangeMailboxReplication.exe.config, update the XML attributes under <MRSConfiguration>, and restart the MSExchangeMailboxReplication service:
$ConfigPath = Join-Path $env:ExchangeInstallPath "Bin\MSExchangeMailboxReplication.exe.config"
$BackupPath = "$ConfigPath.bak_$(Get-Date -Format 'yyyyMMdd_HHmmss')"
# 1. Create a timestamped backup of MSExchangeMailboxReplication.exe.config
Copy-Item -Path $ConfigPath -Destination $BackupPath -Force
Write-Host "[+] Backed up MRS config to: $BackupPath" -ForegroundColor Cyan
# 2. Load the XML configuration and update the concurrency limits
[xml]$MrsXml = Get-Content -Path $ConfigPath -Raw
$MrsNode = $MrsXml.configuration.MRSConfiguration
$MrsNode.MaxActiveMovesPerSourceMDB = "50"
$MrsNode.MaxActiveMovesPerTargetMDB = "50"
$MrsNode.MaxActiveMovesPerSourceServer = "150"
$MrsNode.MaxActiveMovesPerTargetServer = "150"
$MrsNode.MaxTotalRequestsPerMRS = "200"
$MrsXml.Save($ConfigPath)
# 3. Restart the Microsoft Exchange Mailbox Replication Service to apply changes
Restart-Service MSExchangeMailboxReplication
Write-Host "[+] Updated MRS concurrency limits and restarted MSExchangeMailboxReplication!" -ForegroundColor Green
# 4. Verify the active XML values
[xml]$VerifyXml = Get-Content -Path $ConfigPath -Raw
$VerifyXml.configuration.MRSConfiguration |
Select-Object MaxActiveMovesPerSourceMDB, MaxActiveMovesPerTargetMDB, MaxActiveMovesPerSourceServer, MaxActiveMovesPerTargetServer, MaxTotalRequestsPerMRS

Method 2: What If Moves Still Show StalledDueToTarget_MdbReplication?
In Exchange 2016, 2019, and Exchange Server SE, even after increasing MaxActiveMovesPerTargetMDB, Resource Health Manager (WLM) may temporarily pause moves with StalledDueToTarget_MdbReplication if DAG log shipping (CopyQueueLength or ReplayQueueLength) lags behind during heavy write bursts.
To bypass resource health throttling for an urgent maintenance window or VIP mailbox migration:
- Pass
-Priority Emergencyon yourNew-MoveRequestorSet-MoveRequestcommand:
# Bypass WLM resource health throttling for critical mailbox moves
Get-MoveRequest -MoveStatus InProgress | Set-MoveRequest -Priority Emergency
- Remember that Cumulative Updates (CUs) overwrite
MSExchangeMailboxReplication.exe.config, so re-run the PowerShell script above after installing any Exchange CU!