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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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.3 — 2026-11-12
## 3.1.4 — 2026-11-13

### Added
- Convert the members of an AD group for one run (`-Group <name or DN>`, or **AD group** in the console Task page): nested groups included, every member not converted listed with its reason.
Expand All @@ -16,6 +16,7 @@ a PATCH version fixes a defect. The backup formats have their own version (see t
- Every failed run ends with a next step and a command that works: refused options, a refused AD write, an unreachable domain controller, a cloud wait that timed out, an object already converted (its current batch).
- Two servers: copy the zip **and** its `.sha256` file; the rollback command after a cloud step is the AD phase.
- Plain messages for a failed Entra Connect cycle, a Check and the Exchange Online session check. The Setup page shows one "Cloud modules" light.
- A log folder that cannot be created is reported once, as one error.

## 3.1.2 — 2026-11-10

Expand Down
6 changes: 3 additions & 3 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.3.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.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.

> [!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.3, 2026-11-10 ([changelog](CHANGELOG.md)).
**Author:** Nicolas Fabert · **Version:** 3.1.4, 2026-11-13 ([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.3.zip from the latest release (under Assets, not Source code) and extract it to D:\PRA\PraRemoteMailbox
# Download PraRemoteMailbox-3.1.4.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
51 changes: 26 additions & 25 deletions package/Invoke-PraRemoteMailbox.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@

.NOTES
Author : Nicolas Fabert
Version : 3.1.3
Version : 3.1.4
Requires : PowerShell 7.5 or later (pwsh.exe; Windows PowerShell 5.1 is refused), RSAT ActiveDirectory,
ExchangeOnlineManagement 3.10.1+, Microsoft.Graph.Authentication and Microsoft.Graph.Users 2.41.1+ in one same
version (cloud part), ADSync (sync; through the Windows PowerShell compatibility layer when local).
Expand Down Expand Up @@ -1382,8 +1382,9 @@ try {
}
catch {
$failure = $_; $failureOperation = $context.CurrentOperation
if (-not $context.TranscriptStarted -and -not $context.LogFile -and $context.LogFolder) {
try { Initialize-PraAudit $context } catch { $context.Issues.Add([pscustomobject]@{ Message = "Audit unavailable: $($_.Exception.Message)"; Source = 'Audit' }) }
# The audit starts here when the run stopped before reaching it (a configuration that cannot be read); an audit that failed is already reported.
if (-not $context.TranscriptStarted -and -not $context.LogFile -and $context.LogFolder -and -not [bool](Get-PraValue $context 'AuditAttempted' $false)) {
try { Initialize-PraAudit $context } catch { $retryMessage = $_.Exception.Message; if (-not @($context.Issues.ToArray() | Where-Object { ([string](Get-PraValue $_ 'Message' '')).Contains($retryMessage) }).Count) { $context.Issues.Add([pscustomobject]@{ Message = "Audit unavailable: $retryMessage"; Source = 'Audit' }) } }
}
$context.CurrentOperation = $failureOperation
try {
Expand Down Expand Up @@ -1452,8 +1453,8 @@ finally {
# SIG # Begin signature block
# MIImKgYJKoZIhvcNAQcCoIImGzCCJhcCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAupjDsezx0P6kX
# uRHzsYPusl7YRilGPEM4yTpTuRMAA6CCDW8wggZyMIIEWqADAgECAghkM1HTxzif
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDBldMnzAsM7r0A
# Gou1kqH4Jk/bBL1tsc1AXt+MCK0OM6CCDW8wggZyMIIEWqADAgECAghkM1HTxzif
# CDANBgkqhkiG9w0BAQsFADB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx
# EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAo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