Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
9d03911
Interrupted runs fail, partial Convert batches resume or roll back sa…
Nico77600 Nov 17, 2026
9d7d8e4
Cloud identity confirmed by source anchor, bounded retries with Retry…
Nico77600 Nov 17, 2026
be0614f
Lot B review fixes; scale to thousands of objects: incremental receip…
Nico77600 Nov 17, 2026
c1f02c4
Faster backup codec and AD batch, licence group read by memberOf, gra…
Nico77600 Nov 18, 2026
af8af49
Global report without caps, console sections, review fixes
Nico77600 Nov 19, 2026
a4d44f8
Retention gate before Recover, Recover drift, Deny entries, console i…
Nico77600 Nov 20, 2026
788ce2e
Retention gate: proof fallback, GUID matching, bulk reads, review fixes
Nico77600 Nov 20, 2026
c71beeb
Retention gate: per-object proof verdicts, active-only bulk read, sig…
Nico77600 Nov 20, 2026
f2b2509
Retention gate: newest proof decides, sign-in failure kept out of the…
Nico77600 Nov 21, 2026
9d93346
3.2.0: version, changelog, guides and images; retention proof review …
Nico77600 Nov 21, 2026
4cb9beb
Lab findings: licence facts of a trustee, retention messages, interru…
Nico77600 Nov 22, 2026
d319d0e
Never-applied batch: refusal of the AD finish says there is nothing t…
Nico77600 Nov 22, 2026
6282635
3.2.0: release date and lab validation note
Nico77600 Nov 22, 2026
b935d99
PraRemoteMailbox 3.2.0: owner-signed runtime
Nico77600 Nov 22, 2026
01f8b72
PraRemoteMailbox 3.2.0: close the batch journal after reading it
Nico77600 Nov 22, 2026
747fca1
PraRemoteMailbox 3.2.0: deterministic checksum rewrites in the consol…
Nico77600 Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package/PackageIntegrity.psd1 -text whitespace=blank-at-eol,space-before-tab,bla
# Stable hashed files (SHA256 in the signed manifest) and the distribution copy of the changelog.
package/module/PRA.Gui.xaml -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol
package/templates/Report.template.html -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol
package/templates/GlobalReport.template.html -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol
package/config/Targets.sample.csv -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol
package/config/SharedPermissions.sample.csv -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol
package/README.md -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
validate:
name: Validate (${{ matrix.engine }})
runs-on: windows-2022
timeout-minutes: 75
timeout-minutes: 150
strategy:
fail-fast: false
matrix:
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ All notable changes of PRA Remote Mailbox. Author: Nicolas Fabert. Versions foll
a MAJOR version changes the command line or the configuration file, a MINOR version adds a feature,
a PATCH version fixes a defect. The backup formats have their own version (see the guide, annex D).

## 3.2.0 — 2026-11-22

### Added
- Batches of thousands of objects: planned, measured and documented for 5,000 objects per batch.
- Retention check before a Recover: it stops when a cloud mailbox is not held by the retention policy. `-AcceptRetentionRisk` (a checkbox in the console) accepts the risk for one run; `Retention.CheckBeforeRecover` turns the check off; on two servers the cloud server writes a retention proof that the AD server accepts for `Retention.ProofMaxAgeHours` hours.
- Cloud accounts are confirmed against Active Directory before any cloud write (`Cloud.IdentityCheck`); the cloud part now reads Microsoft Graph for every object, so `User.Read.All` is needed for every run.
- Throttled or unavailable Microsoft Graph and Exchange Online reads are retried with a budget per object and per run (`Cloud.RetryBudgetObjectSeconds`, `Cloud.RetryBudgetRunMinutes`).
- Console: **To do** and **Finished** sections in the batch lists, the retention checkbox and proof line on Recover, Ctrl+C in the terminal no longer stops the window, and the activity log keeps its last 2,000 lines.

### Changed
- The global report has no silent cap: full CSV files and a light HTML page that stays fast with thousands of objects.
- A Recover warns about objects changed since their batch, and *Deny* entries of a shared mailbox are reported.
- A phase can be run again from the same transfer package.

### Fixed
- A run that is interrupted (Ctrl+C, closed window) never ends as a success; a partly converted batch can be continued or rolled back.

## 3.1.4 — 2026-11-13

### Added
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</p>

> [!TIP]
> **Download the latest release.** Open the [latest release](https://github.com/Nico77600/PraRemoteMailbox/releases/latest) and download **`PraRemoteMailbox-3.1.4.zip`** under *Assets* (its SHA-256 is in the release notes). That ZIP is the signed tool, with the HTML guides. Do not use the **Source code** archives or the green **Code** button: they are a copy of the repository, not the release package.
> **Download the latest release.** Open the [latest release](https://github.com/Nico77600/PraRemoteMailbox/releases/latest) and download **`PraRemoteMailbox-3.2.0.zip`** under *Assets* (its SHA-256 is in the release notes). That ZIP is the signed tool, with the HTML guides. Do not use the **Source code** archives or the green **Code** button: they are a copy of the repository, not the release package.

> [!IMPORTANT]
> Files downloaded from the Internet may be blocked by Windows and fail to run. Before using this project, unblock every file in the downloaded folder:
Expand All @@ -48,10 +48,10 @@ In a hybrid organisation, a mailbox hosted on-premises is only a *mail user* for

Done by hand, this means rewriting about ten Exchange attributes per object in Active Directory, for hundreds of objects, under stress — and keeping every original value to come back later: a wrong or lost value cannot be repaired without a backup. This tool does the conversion in a planned, verified and **reversible** way.

**Author:** Nicolas Fabert · **Version:** 3.1.4, 2026-11-13 ([changelog](CHANGELOG.md)).
**Author:** Nicolas Fabert · **Version:** 3.2.0, 2026-11-22 ([changelog](CHANGELOG.md)).

> [!CAUTION]
> Convert creates **new, empty** mailboxes in Exchange Online: the content of the on-premises mailboxes is not moved. A Recover deprovisions the cloud mailboxes: export first what was received in the cloud during the disaster, or protect it with a retention policy (reference guide, chapter 6).
> Convert creates **new, empty** mailboxes in Exchange Online: the content of the on-premises mailboxes is not moved. A Recover deprovisions the cloud mailboxes: export first what was received in the cloud during the disaster, or protect it with a retention policy (reference guide, chapter 6). Before it removes anything, a Recover checks that the retention policy holds the mailboxes and stops when it does not (`-AcceptRetentionRisk` accepts the risk for one run).

## Get started

Expand All @@ -68,7 +68,7 @@ One path for everyone. Set the tool up once (**1 to 4**), then take branch **A**
# 1 · Get your rights. Give the table "Requirements" below to your administrator (minimum rights, derived from the code).

# 2 · On the server, in PowerShell 7.5+ as administrator: put the tool in its folder and unblock it.
# Download PraRemoteMailbox-3.1.4.zip from the latest release (under Assets, not Source code) and extract it to D:\PRA\PraRemoteMailbox
# Download PraRemoteMailbox-3.2.0.zip from the latest release (under Assets, not Source code) and extract it to D:\PRA\PraRemoteMailbox
Get-ChildItem D:\PRA\PraRemoteMailbox -Recurse -File -Force | Unblock-File
Install-Module ExchangeOnlineManagement -MinimumVersion 3.10.1 -Scope AllUsers -Force
Install-Module Microsoft.Graph.Authentication -MinimumVersion 2.41.1 -Scope AllUsers -Force # one command per module: PowerShellGet refuses -MinimumVersion with several names
Expand Down Expand Up @@ -204,7 +204,7 @@ Exchange on-premises is down, so the tool reads the permissions where Exchange k

Open the console with `pwsh -STA -File .\package\Invoke-PraRemoteMailbox.ps1 -Gui` (native Fluent theme, PowerShell 7.5+, English). It starts no operation by itself; every operation runs the existing engine in a separate **PowerShell 7.5+** process (the same `pwsh.exe`).

The console is a guided path of five pages: **Setup** (the environment, what this server can run, the prerequisite lights from real detection, one line of run settings), **Task** (move mailboxes, roll back, complete a rollback, check a mailbox, on what: one identity to test first, the configured scope, an OU or a CSV, or a batch or package to continue), **Verify** (the Preview in plain words, then the confirmation word in any letter case), **Run** (the steps announced by the engine, with their waits and warnings in plain words; click a step or an object) and **Next steps**. Run settings changed in the window apply to that run only, through a guarded effective copy of the configuration: the file is never rewritten. See the [reference guide, chapter 8](package/docs/PraRemoteMailbox-Guide.md#8-everyday-use).
The console is a guided path of five pages: **Setup** (the environment, what this server can run, the prerequisite lights from real detection, one line of run settings), **Task** (move mailboxes, roll back, complete a rollback, check a mailbox, on what: one identity to test first, the configured scope, an OU or a CSV, or a batch or package to continue), **Verify** (the Preview in plain words, then the confirmation word in any letter case), **Run** (the steps announced by the engine, with their waits and warnings in plain words; click a step or an object) and **Next steps**. The batch lists show what is **To do** and what is **Finished**. Run settings changed in the window apply to that run only, through a guarded effective copy of the configuration: the file is never rewritten. See the [reference guide, chapter 8](package/docs/PraRemoteMailbox-Guide.md#8-everyday-use).

<picture>
<source media="(prefers-color-scheme: dark)" srcset="package/docs/images/console-run-finished-dark.png">
Expand All @@ -221,7 +221,7 @@ Every run writes a log, a PowerShell transcript, a CSV and an HTML report. Exit
<td width="50%" valign="top"><a href="package/docs/images/report-phase-warning-light.png"><img alt="The HTML report of a run with a warning on a shared mailbox, and the list of warnings below the table" src="package/docs/images/report-phase-warning-light.png"></a><br><sub><b>Warnings</b> &middot; something was left aside on purpose: shown in the console, the log, the CSV and the report</sub></td>
</tr>
<tr>
<td width="50%" valign="top"><a href="package/docs/images/report-global-light.png"><img alt="The global report of a Convert across two servers: the times of the AD server and of the cloud server, then every person from end to end" src="package/docs/images/report-global-light.png"></a><br><sub><b>Global report</b> &middot; on two servers, the last server writes one report that follows each object from the first server to the last</sub></td>
<td width="50%" valign="top"><a href="package/docs/images/report-global-light.png"><img alt="The global report of a Convert across two servers: the times of the AD server and of the cloud server, then every person from end to end" src="package/docs/images/report-global-light.png"></a><br><sub><b>Global report</b> &middot; on two servers, the last server writes one report that follows each object from the first server to the last, with every object in full CSV files and a light HTML page</sub></td>
<td width="50%" valign="top"><a href="package/docs/images/report-global-recover-light.png"><img alt="The global report of a rollback across three phases: Recover on the AD server, Recover on the cloud server, Finalize" src="package/docs/images/report-global-recover-light.png"></a><br><sub><b>Rollback</b> &middot; Recover on the AD server, Recover on the cloud server, then Finalize, in one report</sub></td>
</tr>
</table>
Expand Down Expand Up @@ -285,7 +285,7 @@ Both guides also exist as a single HTML file with a light and a dark theme (`pac
pwsh -NoProfile -File .\tests\Invoke-TestGate.ps1 # no directory, no tenant needed
```

The gate runs the real entry script against a synthetic Active Directory, Entra Connect and Exchange Online: no write before the complete backup, stop at the first error, no write in Preview, no Apply without confirmation, memory bounds, proofs and Finalize packages. It also exercises WPF selection, Preview/Apply guards and OU/CSV targeting, and checks the documentation (pictures, names, the Graph scope documented against the one of the code). Earlier versions were validated on a real Active Directory, Entra Connect and Microsoft 365 tenant (reference guide, annex B); **3.0.0 has offline validation only, not a new live-tenant campaign** (the lab list for the PowerShell 7 engine is in the guide, annex B). Files written by the real 2.2.0 under Windows PowerShell 5.1 are replayed by the gate (`tests\PraLegacyFixtures.Tests.ps1`, fixtures frozen in `tests\fixtures\ps51-2.2.0`). `tools\Build-Documentation.ps1` and `tools\New-DocumentationImages.ps1`, which rebuild the HTML guides and the pictures on a workstation, need PowerShell 7.5+ (and Microsoft Edge for the pictures).
The gate runs the real entry script against a synthetic Active Directory, Entra Connect and Exchange Online: no write before the complete backup, stop at the first error, no write in Preview, no Apply without confirmation, memory bounds, proofs and Finalize packages. It also exercises WPF selection, Preview/Apply guards and OU/CSV targeting, and checks the documentation (pictures, names, the Graph scope documented against the one of the code). Earlier versions were validated on a real Active Directory, Entra Connect and Microsoft 365 tenant (reference guide, annex B); **3.2.0 was validated on a real lab** with two servers (Convert, Recover, the retention check before Recover, interrupted runs). Files written by the real 2.2.0 under Windows PowerShell 5.1 are replayed by the gate (`tests\PraLegacyFixtures.Tests.ps1`, fixtures frozen in `tests\fixtures\ps51-2.2.0`). `tools\Build-Documentation.ps1` and `tools\New-DocumentationImages.ps1`, which rebuild the HTML guides and the pictures on a workstation, need PowerShell 7.5+ (and Microsoft Edge for the pictures).

## License

Expand Down
Loading
Loading