Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@ package/docs/images/console-next-finalize-light.png -text
package/docs/images/console-next-global-light.png -text
package/docs/images/console-next-light.png -text
package/docs/images/console-next-package-light.png -text
package/docs/images/console-next-rollback-cloud-light.png -text
package/docs/images/console-next-rollback-light.png -text
package/docs/images/console-next-rollback-package-light.png -text
package/docs/images/console-run-cloud-light.png -text
package/docs/images/console-run-early-light.png -text
package/docs/images/console-run-finalize-light.png -text
package/docs/images/console-run-finished-dark.png -text
package/docs/images/console-run-finished-light.png -text
package/docs/images/console-run-grant-light.png -text
package/docs/images/console-run-package-light.png -text
package/docs/images/console-run-rollback-cloud-light.png -text
package/docs/images/console-run-rollback-light.png -text
package/docs/images/console-run-waiting-light.png -text
package/docs/images/console-settings-light.png -text
Expand All @@ -58,14 +61,18 @@ package/docs/images/console-task-finalize-light.png -text
package/docs/images/console-task-identity-light.png -text
package/docs/images/console-task-light.png -text
package/docs/images/console-task-package-selected-light.png -text
package/docs/images/console-task-rollback-ad-light.png -text
package/docs/images/console-task-rollback-continue-light.png -text
package/docs/images/console-task-rollback-light.png -text
package/docs/images/console-task-rollback-package-light.png -text
package/docs/images/console-task-rollback-selected-light.png -text
package/docs/images/console-task-scope-light.png -text
package/docs/images/console-verify-before-light.png -text
package/docs/images/console-verify-check-light.png -text
package/docs/images/console-verify-cloud-light.png -text
package/docs/images/console-verify-finalize-light.png -text
package/docs/images/console-verify-light.png -text
package/docs/images/console-verify-rollback-cloud-light.png -text
package/docs/images/console-verify-rollback-light.png -text
package/docs/images/console-verify-scope-light.png -text
package/docs/images/guide-dictionary-light.png -text
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ 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.1.1 — 2026-11-09

Documentation only: no change to the tool itself.

### Changed
- User guide: the whole journey on one or two servers in one place (what to click, which file the tool writes, where to copy it),
and how the batch ID links a move to its rollback weeks later.
- User guide: the cloud part of a two-server rollback, step by step with pictures.

## 3.1.0 — 2026-11-06

### Added
Expand Down
13 changes: 7 additions & 6 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.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.
> **Download the latest release.** Open the [latest release](https://github.com/Nico77600/PraRemoteMailbox/releases/latest) and download **`PraRemoteMailbox-3.1.1.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,7 +48,7 @@ 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.0, 2026-11-06 ([changelog](CHANGELOG.md)).
**Author:** Nicolas Fabert · **Version:** 3.1.1, 2026-11-09 ([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).
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.0.zip from the latest release (under Assets, not Source code) and extract it to D:\PRA\PraRemoteMailbox
# Download PraRemoteMailbox-3.1.1.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.0 -Scope AllUsers -Force
Install-Module Microsoft.Graph.Authentication, Microsoft.Graph.Users -Scope AllUsers -Force
Expand Down Expand Up @@ -132,9 +132,10 @@ In the console, the same path is five pages: **Setup**, **Task** (*Move mailboxe
.\Invoke-PraRemoteMailbox.ps1 -Action Recover -Batch 490cc62e -Mode Apply

# 6 · Two servers only: Recover on the AD server, then on the cloud server (it writes a Finalize package), then Finalize on the AD server
# Each package has its own ID: the one of the Convert batch is only used to pick the batch to roll back
.\Invoke-PraRemoteMailbox.ps1 -Action Recover -Phase AD -Batch 490cc62e -Mode Apply
.\Invoke-PraRemoteMailbox.ps1 -Action Recover -Phase Cloud -Batch 'PRA-PROD-Recover-490cc62e-for-Cloud.zip' -Mode Apply
.\Invoke-PraRemoteMailbox.ps1 -Action Finalize -Batch 'PRA-PROD-Finalize-490cc62e-for-AD.zip' -Mode Apply
.\Invoke-PraRemoteMailbox.ps1 -Action Recover -Phase Cloud -Batch 'PRA-PROD-Recover-5ad39f71-for-Cloud.zip' -Mode Apply
.\Invoke-PraRemoteMailbox.ps1 -Action Finalize -Batch 'PRA-PROD-Finalize-b7d41a9c-for-AD.zip' -Mode Apply

# 7 · Read the report; check a mailbox at any time
.\Invoke-PraRemoteMailbox.ps1 -Action Check -Identity alice.vance@contoso.com
Expand Down Expand Up @@ -163,7 +164,7 @@ Keep the `Backups` folder on a durable, protected volume: the backups are the on

### Two servers, one file

Between two servers, an Apply writes **one transfer package** (`Backups\Outbox\PRA-<Env>-<Kind>-<id8>-for-<Cloud|AD>.zip` with its checksum file). Copy that single file to the other server and use **Import package...** (or `-Batch <package.zip>`): the package is verified completely, including every entry hash, before anything is written. The last server writes **one global report** that follows each object from the first server to the last.
Between two servers, an Apply writes **one transfer package** (`Backups\Outbox\PRA-<Env>-<Kind>-<id8>-for-<Cloud|AD>.zip` with its checksum file). Copy that single file to the other server and use **Import package...** (or `-Batch <package.zip>`): the package is verified completely, including every entry hash, before anything is written. The last server writes **one global report** that follows each object from the first server to the last. The [user guide](package/docs/PraRemoteMailbox-UserGuide.md#the-whole-journey) shows the whole journey, move then rollback, on one or two servers: what to click, which file the tool writes and where to copy it.

<picture>
<source media="(prefers-color-scheme: dark)" srcset="package/docs/images/readme-transfer-dark.png">
Expand Down
54 changes: 27 additions & 27 deletions package/Invoke-PraRemoteMailbox.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@

.NOTES
Author : Nicolas Fabert
Version : 3.1.0
Version : 3.1.1
Requires : PowerShell 7.5 or later (pwsh.exe; Windows PowerShell 5.1 is refused), RSAT ActiveDirectory,
ExchangeOnlineManagement 3.10+, Microsoft.Graph.Authentication and Microsoft.Graph.Users
(cloud part), ADSync (sync; through the Windows PowerShell compatibility layer when local).
Expand Down Expand Up @@ -1100,10 +1100,10 @@ finally {
}

# SIG # Begin signature block
# MIImKwYJKoZIhvcNAQcCoIImHDCCJhgCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# MIImKgYJKoZIhvcNAQcCoIImGzCCJhcCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUAB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