diff --git a/.gitattributes b/.gitattributes index 237eb06..c483d9a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,8 +2,13 @@ # Do not add a global autocrlf rule for these paths. package/docs/** linguist-documentation -# Owner-signed files (eight PowerShell files and the manifest); cr-at-eol because their working-tree line endings are CRLF. +# Frozen Windows PowerShell 5.1 fixtures of 2.2.0: byte-exact, never converted (their SHA-256 are listed in fixtures.sha256; the folder also carries its own .gitattributes). +tests/fixtures/** -text + +# Owner-signed files (ten PowerShell files, the module manifest included, and the inventory manifest); cr-at-eol because their working-tree line endings are CRLF. package/Invoke-PraRemoteMailbox.ps1 -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol +package/PraRemoteMailbox.psd1 -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol +package/PraRemoteMailbox.psm1 -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol package/module/PRA.Common.psm1 -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol package/module/PRA.Directory.psm1 -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol package/module/PRA.Backup.psm1 -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol @@ -22,19 +27,65 @@ package/README.md -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr package/LICENSE -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol package/docs/PraRemoteMailbox-Guide.html -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol package/docs/PraRemoteMailbox-Guide.md -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol -package/docs/images/console-apply.png -text -package/docs/images/console-preview.png -text -package/docs/images/gui-fluent.png -text +package/docs/PraRemoteMailbox-UserGuide.html -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol +package/docs/PraRemoteMailbox-UserGuide.md -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol +package/docs/images/console-next-cloud-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-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-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-light.png -text +package/docs/images/console-run-waiting-light.png -text +package/docs/images/console-settings-light.png -text +package/docs/images/console-setup-dark.png -text +package/docs/images/console-setup-light.png -text +package/docs/images/console-setup-lights-light.png -text +package/docs/images/console-setup-next-light.png -text +package/docs/images/console-setup-red-light.png -text +package/docs/images/console-setup-red-lights-light.png -text +package/docs/images/console-task-ad-light.png -text +package/docs/images/console-task-check-light.png -text +package/docs/images/console-task-continue-light.png -text +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-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-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 package/docs/images/readme-banner-dark.png -text package/docs/images/readme-banner-light.png -text package/docs/images/readme-flows-dark.png -text package/docs/images/readme-flows-light.png -text package/docs/images/readme-how-dark.png -text package/docs/images/readme-how-light.png -text +package/docs/images/readme-path-dark.png -text +package/docs/images/readme-path-light.png -text package/docs/images/readme-permissions-dark.png -text package/docs/images/readme-permissions-light.png -text package/docs/images/readme-principles-dark.png -text package/docs/images/readme-principles-light.png -text -package/docs/images/report-warning.png -text -package/docs/images/report.png -text +package/docs/images/readme-rights-dark.png -text +package/docs/images/readme-rights-light.png -text +package/docs/images/readme-transfer-dark.png -text +package/docs/images/readme-transfer-light.png -text +package/docs/images/readme-why-dark.png -text +package/docs/images/readme-why-light.png -text +package/docs/images/report-global-light.png -text +package/docs/images/report-global-recover-light.png -text +package/docs/images/report-phase-light.png -text +package/docs/images/report-phase-warning-light.png -text CHANGELOG.md -text whitespace=blank-at-eol,space-before-tab,blank-at-eof,cr-at-eol diff --git a/.github/ci.json b/.github/ci.json index 48bc505..604b2c8 100644 --- a/.github/ci.json +++ b/.github/ci.json @@ -6,7 +6,9 @@ "tests/PraRemoteMailbox.Tests.ps1", "tests/PraRemoteMailbox.Gui.Tests.ps1", "tests/PackageIntegrity.Tests.ps1", - "tests/PraReport.Tests.ps1" + "tests/PraReport.Tests.ps1", + "tests/PraLegacyFixtures.Tests.ps1", + "tests/PraDocumentation.Tests.ps1" ], "packageBuilder": "tools/New-PraPackage.ps1", "packageEntry": "Invoke-PraRemoteMailbox.ps1" diff --git a/.github/scripts/Install-PowerShell.ps1 b/.github/scripts/Install-PowerShell.ps1 new file mode 100644 index 0000000..382a21a --- /dev/null +++ b/.github/scripts/Install-PowerShell.ps1 @@ -0,0 +1,51 @@ +#Requires -Version 5.1 +<# +.SYNOPSIS + CI only. Makes sure that the pwsh used by the next steps is PowerShell 7.5 or later (the engine requires 7.5+). +.DESCRIPTION + The GitHub-hosted Windows images ship PowerShell 7.4. If pwsh on PATH is older than 7.5, the pinned release below is + downloaded from the official PowerShell release page, its SHA-256 is checked against the value pinned here (the same value + appears in the hashes.sha256 asset of the release), it is extracted under RUNNER_TEMP and put first on PATH for the + following steps. A full extracted copy keeps pwsh.exe inside $PSHOME, which the engine needs to start its child processes. + It does not connect to a lab or use publication credentials. +#> +[CmdletBinding()] +param( + [string]$Version = '7.5.13', + [string]$Sha256 = '120B8F0B04F3B3F6E8C351DDBE568BF596CDCA15EEB2ECB7E724060051A36D65' +) + +Set-StrictMode -Version Latest +$ErrorActionPreference = 'Stop' +$minimum = [version]'7.5.0' + +function Get-PwshVersion { + $command = Get-Command pwsh -ErrorAction SilentlyContinue + if (-not $command) { return $null } + $text = & $command.Source -NoProfile -NonInteractive -Command '$PSVersionTable.PSVersion.ToString()' + if ($LASTEXITCODE -ne 0) { return $null } + return [version](($text | Select-Object -First 1) -replace '[-+].*$', '') +} + +$current = Get-PwshVersion +if ($current -and $current -ge $minimum) { + Write-Output ('pwsh {0} already satisfies PowerShell 7.5+.' -f $current) + return +} + +$runnerTemp = if ($env:RUNNER_TEMP) { $env:RUNNER_TEMP } else { [IO.Path]::GetTempPath() } +$zip = Join-Path $runnerTemp ('PowerShell-{0}-win-x64.zip' -f $Version) +$destination = Join-Path $runnerTemp ('pwsh-{0}' -f $Version) +$uri = 'https://github.com/PowerShell/PowerShell/releases/download/v{0}/PowerShell-{0}-win-x64.zip' -f $Version +Invoke-WebRequest -Uri $uri -OutFile $zip -UseBasicParsing +$actual = (Get-FileHash -LiteralPath $zip -Algorithm SHA256).Hash +if (-not [string]::Equals($actual, $Sha256, [StringComparison]::OrdinalIgnoreCase)) { + Remove-Item -LiteralPath $zip -Force + throw "The downloaded PowerShell archive does not match the pinned SHA-256 ($actual)." +} +if (Test-Path -LiteralPath $destination) { throw "The destination already exists and will not be overwritten: $destination" } +Expand-Archive -LiteralPath $zip -DestinationPath $destination +if (-not (Test-Path -LiteralPath (Join-Path $destination 'pwsh.exe') -PathType Leaf)) { throw 'The archive does not contain pwsh.exe.' } +if (-not $env:GITHUB_PATH) { throw 'The GitHub Actions path file is missing.' } +$destination | Out-File -LiteralPath $env:GITHUB_PATH -Encoding utf8 -Append +Write-Output ('PowerShell {0} extracted to {1} and added to PATH for the next steps.' -f $Version, $destination) diff --git a/.github/scripts/Invoke-CI.ps1 b/.github/scripts/Invoke-CI.ps1 index 3c0bb71..fc5d169 100644 --- a/.github/scripts/Invoke-CI.ps1 +++ b/.github/scripts/Invoke-CI.ps1 @@ -1,4 +1,4 @@ -#Requires -Version 5.1 +#Requires -Version 7.5 [CmdletBinding()] param( [Parameter(Mandatory)][ValidateSet('Analyze', 'Test', 'Package')][string]$Stage, @@ -8,11 +8,6 @@ param( Set-StrictMode -Version Latest $ErrorActionPreference = 'Stop' -if ($PSVersionTable.PSEdition -eq 'Desktop') { - foreach ($name in 'Microsoft.PowerShell.Utility', 'Microsoft.PowerShell.Management', 'Microsoft.PowerShell.Security') { - Import-Module (Join-Path $PSHOME ('Modules\{0}\{0}.psd1' -f $name)) -ErrorAction Stop - } -} $root = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..\..')) $configuration = Get-Content -LiteralPath (Join-Path $root '.github\ci.json') -Raw | ConvertFrom-Json $OutputDirectory = [IO.Path]::GetFullPath($OutputDirectory) @@ -39,11 +34,14 @@ switch ($Stage) { $tracked = @(git -C $root ls-files -- '*.ps1' '*.psm1' '*.psd1') if ($LASTEXITCODE -ne 0) { throw 'Cannot enumerate the tracked PowerShell sources.' } $runtime = [string]$configuration.runtimeRoot - $files = @($tracked | Where-Object { + $runtimeFiles = @($tracked | Where-Object { ($_ -notmatch '^(tests|tools|lib|\.github)/') -and ($runtime -eq '.' -or $_.StartsWith($runtime.TrimEnd('/') + '/', [StringComparison]::Ordinal)) }) - if ($files.Count -eq 0) { throw 'No tracked runtime PowerShell sources were found.' } + if ($runtimeFiles.Count -eq 0) { throw 'No tracked runtime PowerShell sources were found.' } + # Tests and tools are analysed too (advisory, same policy as the runtime); they are not part of the package. + $supportFiles = @($tracked | Where-Object { $_ -match '^(tests|tools)/' }) + $files = @($runtimeFiles) + @($supportFiles) $parseFailures = @() $findings = @(foreach ($relative in $files) { $path = Resolve-RepositoryFile $relative @@ -57,7 +55,7 @@ switch ($Stage) { } foreach ($finding in @(Invoke-ScriptAnalyzer -Path $path -ErrorAction Stop)) { [pscustomobject]@{ - File = $relative; Line = $finding.Line; Column = $finding.Column + File = $relative; Scope = $(if ($relative -in $runtimeFiles) { 'runtime' } else { 'tests-tools' }); Line = $finding.Line; Column = $finding.Column Severity = [string]$finding.Severity; Rule = $finding.RuleName; Message = $finding.Message } } @@ -67,7 +65,7 @@ switch ($Stage) { ConvertTo-Json -InputObject $parseFailures -Depth 5 | Out-File -LiteralPath (Join-Path $OutputDirectory 'syntax-errors.json') -Encoding utf8 $summary = [ordered]@{ - Files = $files.Count; Analyzer = '1.25.0'; SyntaxErrors = $parseFailures.Count + Files = $files.Count; RuntimeFiles = $runtimeFiles.Count; TestAndToolFiles = $supportFiles.Count; Analyzer = '1.25.0'; SyntaxErrors = $parseFailures.Count Errors = @($findings | Where-Object Severity -eq 'Error').Count Warnings = @($findings | Where-Object Severity -eq 'Warning').Count Informative = @($findings | Where-Object Severity -eq 'Information').Count @@ -76,15 +74,13 @@ switch ($Stage) { $summary | ConvertTo-Json | Out-File -LiteralPath (Join-Path $OutputDirectory 'analysis-summary.json') -Encoding utf8 Write-Output ($summary | ConvertTo-Json -Compress) - if ($parseFailures.Count) { throw 'Runtime PowerShell sources contain syntax errors.' } + if ($parseFailures.Count) { throw 'PowerShell sources (runtime, tests or tools) contain syntax errors.' } } 'Test' { Import-Module Pester -RequiredVersion 6.1.0 -Force -ErrorAction Stop if ($configuration.testMode -eq 'gate') { $gate = Resolve-RepositoryFile $configuration.testEntry - $executable = if ($PSVersionTable.PSEdition -eq 'Desktop') { - Join-Path $PSHOME 'powershell.exe' - } else { Join-Path $PSHOME 'pwsh.exe' } + $executable = Join-Path $PSHOME 'pwsh.exe' & $executable -NoProfile -NonInteractive -File $gate if ($LASTEXITCODE -ne 0) { throw "The existing project test gate failed with exit code $LASTEXITCODE." } } elseif ($configuration.testMode -eq 'runner') { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83e288f..f3ee96b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,59 +18,51 @@ jobs: validate: name: Validate (${{ matrix.engine }}) runs-on: windows-2022 - timeout-minutes: 35 + timeout-minutes: 75 strategy: fail-fast: false matrix: - include: [{"engine":"Windows PowerShell 5.1","shell":"powershell","package":true}] + include: [{"engine":"PowerShell 7","shell":"pwsh","package":true}] steps: - name: Check out the tested revision uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: persist-credentials: false + - name: Ensure PowerShell 7.5 or later (the engine requires it; the image ships 7.4) + shell: pwsh + run: .\.github\scripts\Install-PowerShell.ps1 + + - name: Show the PowerShell that runs the next steps + shell: pwsh + run: | + $PSVersionTable.PSVersion.ToString() + $PSHOME + if ($PSVersionTable.PSVersion -lt [version]'7.5.0') { throw 'PowerShell 7.5+ is required.' } + - name: Load pinned analysis and test modules shell: pwsh run: .\.github\scripts\Initialize-CIModules.ps1 -Destination "$env:RUNNER_TEMP\ci-modules" - - name: Analyze PowerShell sources (PowerShell 7) - if: matrix.shell == 'pwsh' + - name: Analyze PowerShell sources (PowerShell 7.5) shell: pwsh run: .\.github\scripts\Invoke-CI.ps1 -Stage Analyze -OutputDirectory "$env:RUNNER_TEMP\ci-results" - - name: Analyze PowerShell sources (Windows PowerShell 5.1) - if: matrix.shell == 'powershell' - shell: powershell - run: .\.github\scripts\Invoke-CI.ps1 -Stage Analyze -OutputDirectory "$env:RUNNER_TEMP\ci-results" - - - name: Run the existing project tests (PowerShell 7) - if: matrix.shell == 'pwsh' + - name: Run the existing project tests (PowerShell 7.5) shell: pwsh run: .\.github\scripts\Invoke-CI.ps1 -Stage Test -OutputDirectory "$env:RUNNER_TEMP\ci-results" - - name: Run the existing project tests (Windows PowerShell 5.1) - if: matrix.shell == 'powershell' - shell: powershell - run: .\.github\scripts\Invoke-CI.ps1 -Stage Test -OutputDirectory "$env:RUNNER_TEMP\ci-results" - - - name: Build with the existing package tool (PowerShell 7) - if: matrix.package && matrix.shell == 'pwsh' + - name: Build with the existing package tool (PowerShell 7.5) shell: pwsh run: .\.github\scripts\Invoke-CI.ps1 -Stage Package -OutputDirectory "$env:RUNNER_TEMP\ci-results" - - name: Build with the existing package tool (Windows PowerShell 5.1) - if: matrix.package && matrix.shell == 'powershell' - shell: powershell - run: .\.github\scripts\Invoke-CI.ps1 -Stage Package -OutputDirectory "$env:RUNNER_TEMP\ci-results" - - name: Retain public CI evidence if: always() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: - name: ci-${{ matrix.engine }} + name: ci-powershell-7.5 path: | ${{ runner.temp }}/ci-results - artifacts/pester-results.xml tests/evidence/gate if-no-files-found: error retention-days: 7 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fcd112..3a407de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,45 +4,33 @@ 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). -## 2.2.0 — Unreleased (source only; no tag, no release) +## 3.0.0 — 2026-11-05 + +**Breaking: PowerShell 7.5+ required.** Windows PowerShell 5.1 is refused before any code runs; use 2.x there. +Backups, proofs and Finalize packages written by 2.x restore unchanged. Includes the unpublished 2.2.0 and 2.3.0 work. ### Added -- **Signed-package integrity (Windows PowerShell 5.1).** `module\Test-PackageIntegrity.ps1` and the - manifest `PackageIntegrity.psd1` verify, before any code runs, the owner's timestamped Authenticode - signature (fixed thumbprint) of the verifier, the manifest and every PowerShell file, and the SHA256 of - every stable file (modules, XAML, report template, sample CSV files, README, licence, guide, images). - The entry script, each module and the GUI helper run the same bootstrap first. A changed, missing, - duplicated, unexpected or reparse-point file fails closed; there is no unsigned mode or bypass. - The configuration and the operational CSV lists in `config\` are data, outside the check, as are - `Backups\`, `logs\` and `reports\`. A backup, log or report folder inside the package other than its own - canonical `Backups`, `logs` or `reports` folder (a sub-folder is fine) is now refused before any file is - written, judged on the physical location (a `\\?\` prefix, junction, SUBST drive, 8.3 name or `Documents and Settings` alias cannot hide the package; an unresolvable path is refused; external paths are unchanged): such files would be rejected at the next start. - The final manifest is generated from the finalized signed and timestamped runtime bytes. -- `tests\PackageIntegrity.Tests.ps1`: static inventory/bootstrap checks, a controlled fixture (only the - signature call is substituted) for tamper, missing, unexpected, duplicate, manifest-schema and reparse - cases, builder checks, and the native signed-package or unsigned fail-closed state of the real package. - -- **Report export snapshot.** The filtered CSV export in the report page now iterates a copy of the rows selected - when it starts, so changing a filter while it runs cannot change the exported rows or the reported count. - -- **High-volume HTML report.** The report page no longer builds a table per row. The rows (22 fields), - run errors and warnings are streamed by a Windows PowerShell 5.1 writer into dictionary-indexed, - gzip+base64 chunks of at most 20,000 rows; the page decodes all chunks when it opens (eager, not lazy) - and shows virtualized *Summary* and *All 22 fields* grids with at most 200 data rows in the page. - Status/type/action/flag/text filters (AND, over every row), a search over the 22 fields, keyboard - navigation, a details dialog, paged warnings and run errors, and a filtered CSV export of all matching - rows (BOM, quoted, formulas neutralised). A current desktop Edge or Chrome is required - (`DecompressionStream`); otherwise the page explains it and the CSV holds every row. Compression is not - encryption. The server CSV is unchanged. -- `tests\PraReport.Tests.ps1` with synthetic 50,000 and 100,000 row reports (exact counts, chunk - boundaries, last row, escaping, fields) and `tests\ReportFixture.ps1`. +- **Guided console** (`-Gui`, English): Setup, Task, Verify, Run, Next steps. Run-only settings that never rewrite + the configuration file, real step progress, and the journey of each mailbox. +- **Transfer package** for two-server runs: one verified zip to carry to the other server (`-Batch ` or + *Import package*). +- **Global report** (HTML and CSV) on the last server, following each object end to end, Convert and Recover. +- **Optional forced Active Directory replication** before the Entra Connect sync (off by default). +- **Signed package integrity**: the owner's timestamped signatures and a signed SHA256 manifest are checked + before any code runs; no unsigned mode. +- Module manifest and root module; a plain-language user guide and a reference guide with minimum permissions. ### Changed -- The runtime moved to the `package\` folder (entry, `module\`, `config\`, `templates\`, `docs\`, runtime - README and licence). Inside the package, and in the extracted release, every path is unchanged. Tests, - tools and the gate stay outside the distribution. `tools\New-PraPackage.ps1` now builds from - `package\`, verifies the signed source first and refuses an unsigned or changed one. -- Documentation and tools (`Build-Documentation.ps1`, `New-ReadmeImages.ps1`) use the new paths. +- Recover keeps the cloud X500 addresses written back by Entra Connect; Finalize accepts that writeback only. +- A server that can run both sides runs Phase Both by default; the runtime lives in the `package\` folder. +- High-volume HTML report (virtualized and filterable; tested with 100,000 rows). + +### Fixed +- Parameter letter case (`-Action convert -Phase cloud`), interactive cloud sign-in from the window (WAM), + read-only cloud pre-check before AD writes in Recover Phase Both, and ordinal string comparisons everywhere. + +This version has offline validation only; no new live-tenant campaign has been performed. +The full detail of each change is in the reference guide and in the commit history. ## 2.1.0 — 2026-10-09 @@ -175,7 +163,7 @@ addressed in 2.0.0. No defect of the backup/proof engine was found. - Test gate on VMLLM (Windows PowerShell 5.1, Pester 6.0.0, PSScriptAnalyzer 1.25.0): **279 / 279 passed**, 0 analyzer error (evidence `tests\evidence\gate\v2.0.0-release`). The 61 tests of the removed path options of 1.3.6 are replaced by tests of `-Batch` and of the confirmation (1.3.6: 325 tests). -- Lab campaign 2026-09-30 / 2026-10-01 on `lab.example` + tenant contoso-test (real AD, Entra Connect and +- Lab campaign 2026-09-30 / 2026-10-01 on a lab Active Directory domain + a Microsoft 365 test tenant (real AD, Entra Connect and Exchange Online): 28 runs — Convert, Recover on one and two servers, Finalize, Check, Recover of a 1.3.6 batch, shared mailbox permissions given to a group (nested group included), SendAs actually granted, SendOnBehalf (guide, annex B). 26 PASS; the 5 defects found (approval callback with `-Force` in a diff --git a/README.md b/README.md index eb9be07..c9fd1a2 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,14 @@

+ Get started  ·  How it works  ·  Convert and Recover  ·  - Shared mailboxes  ·  - WPF window  ·  + Console  ·  Reports  ·  - Quick start  ·  - Administrator guide + Requirements  ·  + User guide  ·  + Reference guide

> [!IMPORTANT] @@ -26,24 +27,119 @@ > > The `Install-Module` commands in this documentation use `-Force`, so they also update or reinstall a module that is already installed. If an older version still conflicts, close every PowerShell window, open a new one (as administrator for `-Scope AllUsers`), run `Uninstall-Module -AllVersions -Force`, then run the `Install-Module` command again. +> [!IMPORTANT] +> **3.0.0 requires PowerShell 7.5 or later (`pwsh.exe`).** Windows PowerShell 5.1 is refused before any code runs. The **2.2.x releases remain the Windows PowerShell 5.1 version** for servers that cannot have PowerShell 7. Backups, proofs and Finalize packages written by 2.x restore unchanged with 3.0.0 (the formats did not change, [reference guide](package/docs/PraRemoteMailbox-Guide.md) annex D). + ## Why In a hybrid organisation, a mailbox hosted on-premises is only a *mail user* for Exchange Online. If the on-premises Exchange servers are lost (ransomware, site loss, corrupted databases), these users have no mailbox at all — and a normal migration is impossible, because moving a mailbox needs the on-premises servers. As long as **Active Directory and Entra Connect** still work, the fastest way back to e-mail is to give each user a **new, empty mailbox in Exchange Online** and to recreate the access to the shared mailboxes. *PRA* stands for *Plan de Reprise d'Activité*, the disaster recovery plan. When Active Directory and Entra Connect are lost too (scenario 2), use [PRA Cloud Mailbox](https://github.com/Nico77600/PraCloudMailbox) instead: it gives the users and shared mailboxes an Exchange Online mailbox on their existing identity, from the cloud only, and rolls everything back once the infrastructure is rebuilt. + + + Three ideas: the mail servers of the company are lost; the tool gives each person a new, empty mailbox in the cloud; when the old servers work again, the tool puts everything back as the backup says + + 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:** 2.2.0, unreleased source ([changelog](CHANGELOG.md)). +**Author:** Nicolas Fabert · **Version:** 3.0.0, 2026-11-05 ([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). + +## Get started - - Design principles: backup before any write, preview first, stop at the first error, reversible + + The guided path. Set up once: 1 get your rights, 2 put the tool on the server, 3 fill in the settings file, 4 open the console. Then branch A, move mailboxes to the cloud: 5 try one mailbox, 6 move everyone, 7 read the report. Or branch B, go back: 5 roll back, 6 complete the rollback on two servers, 7 read the report + + +One path for everyone. Set the tool up once (**1 to 4**), then take branch **A** to move the mailboxes to the cloud, branch **B** to go back, or both. **Always try one mailbox first** (step 5). The commands use one example — the AD server `DC01`, the domain `contoso.com`, the tool in `D:\PRA\PraRemoteMailbox`, a test user `alice.vance@contoso.com`. Change only these names to yours. The [user guide](package/docs/PraRemoteMailbox-UserGuide.md) explains each step with a picture, what you should see and what to do if not, in plain words. + +### Set up once · 1 to 4 + +```powershell +# 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. +# Use the zip of the latest release, or copy the repository package folder 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 + +# 3 · Fill in the settings: scope, licence group, routing domain, Entra Connect server, tenant +notepad D:\PRA\PraRemoteMailbox\config\PraRemoteMailbox.config.psd1 + +# 4 · Open the console: five lights on the first page, all green or grey +pwsh -STA -File D:\PRA\PraRemoteMailbox\Invoke-PraRemoteMailbox.ps1 -Gui +``` + +
+What you see · the Setup page: one light per prerequisite; a red light says what is missing +
+ + + The Setup page of the console: the environment, what this server can run, and five prerequisite lights, all green +
+ +### A · Move mailboxes to the cloud · 5 to 7 + +```powershell +# 5 · Try ONE mailbox first. Preview (nothing is written), then Apply. +cd D:\PRA\PraRemoteMailbox +.\Invoke-PraRemoteMailbox.ps1 -Action Convert -Identity alice.vance@contoso.com +.\Invoke-PraRemoteMailbox.ps1 -Action Convert -Identity alice.vance@contoso.com -Mode Apply + +# 6 · Move everyone: the scope of the settings file, on one server +.\Invoke-PraRemoteMailbox.ps1 -Action Convert # preview +.\Invoke-PraRemoteMailbox.ps1 -Action Convert -Mode Apply # backup, AD, sync, Exchange Online +# Two servers (the AD server cannot reach the cloud): on the AD server, then copy ONE zip file to the cloud server +.\Invoke-PraRemoteMailbox.ps1 -Action Convert -Phase AD -Mode Apply +.\Invoke-PraRemoteMailbox.ps1 -Action Convert -Phase Cloud -Batch 'PRA-PROD-Convert-490cc62e-for-Cloud.zip' -Mode Apply # on the cloud server + +# 7 · Read the report: the Next steps page (or the summary) gives its path. Note the batch ID. +``` + +In the console, the same path is five pages: **Setup**, **Task** (*Move mailboxes to Exchange Online*, *Single identity (test)*), **Verify** (**Preview**, type the confirmation word, **Convert the mailboxes**), **Run** and **Next steps**. + +
+What you see · Task, Verify, Run, Next steps for one test mailbox +
+ + + + + + + + + +
The Task page: the card Move mailboxes to Exchange Online, the object source Single identity (test)
Task · what to do, and on what: one test identity first
The Verify page: one mailbox will be converted, nothing blocking; the confirmation word typed
Verify · the preview in plain words, then the confirmation word
The Run page when the conversion is done: six green steps and the journey of the mailbox
Run · the steps, their waits and warnings, the journey of each mailbox
The Next steps page: the result, the batch, the buttons Open report and Open log
Next steps · the result, the report, the next command
+
+ +### B · Go back · 5 to 7 + +```powershell +# 5 · Roll back, when the old servers work again. Preview, then Apply, with the batch ID of the Convert. +.\Invoke-PraRemoteMailbox.ps1 -Action Recover -Batch 490cc62e +.\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 +.\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 + +# 7 · Read the report; check a mailbox at any time +.\Invoke-PraRemoteMailbox.ps1 -Action Check -Identity alice.vance@contoso.com +``` + +Keep the `Backups` folder on a durable, protected volume: the backups are the only way back. The environment values of the configuration are empty in this repository. The zip of each [release](https://github.com/Nico77600/PraRemoteMailbox/releases) contains only the files needed to run; `.\tools\New-PraPackage.ps1` builds the same package from the repository. ## How it works - The configuration is read by Invoke-PraRemoteMailbox.ps1, which backs up then writes Active Directory, runs an Entra Connect delta cycle and checks Exchange Online, then writes the batch and the reports; four actions: Convert, Recover, Finalize and Check + The settings file is read by Invoke-PraRemoteMailbox.ps1, which backs up then writes Active Directory, runs an Entra Connect cycle and checks Exchange Online, then writes the batch and the reports; four actions: Convert, Recover, Finalize and Check - **Signed package.** The runtime lives in `package\` (same layout as the extracted release ZIP). Every runtime file authenticates the owner-signed manifest before it runs; a changed, missing or unexpected stable file stops the tool before any import or operation. The configuration and your CSV lists are data, outside that check. There is no unsigned mode. The tool refuses to run from any tree whose files are not signed by the owner: use a signed release package. Backup, log and report folders inside the package are limited to the canonical `Backups`, `logs` and `reports`. See [package/README.md](package/README.md). @@ -52,28 +148,19 @@ Done by hand, this means rewriting about ten Exchange attributes per object in A - **One batch ID** links the steps: every Apply prints it with the exact next command, and `-Action Recover -Batch ` rolls the batch back. - **One or two servers**: everything from one server, or the AD part on-premises and the cloud part on an isolated server. -## WPF window - -Open the window with `pwsh -STA -File .\package\Invoke-PraRemoteMailbox.ps1 -Gui` for native Fluent on -PowerShell 7.5+, or `powershell.exe -STA -File .\package\Invoke-PraRemoteMailbox.ps1 -Gui` for compatible -WPF controls. It starts no operation automatically; each operation runs the existing engine in a -separate **Windows PowerShell 5.1** process. - -Choose Convert, Recover, Finalize or Check, with explicit **AD + cloud**, **AD only** or **Cloud only** -execution. Preview is mandatory before Apply, which requires typing the action name. The window -shows progress, results, logs/reports and the next-server commands. Changed inputs invalidate Preview. + + + Design principles: backup before any write, preview first, stop at the first error, reversible + -For **Convert AD/Both**, select the configured scope, an **OU** (typed DN or read-only directory -picker), or an **Identity CSV** (comma/semicolon). The choice applies only to this run and never -rewrites the configuration. Users and shared mailboxes are supported: use **All** for a mixed CSV, -or UsersOnly/SharedOnly for a list containing only the corresponding type. +### Two servers, one file -For split Recover, **AD** takes the original Convert batch; **Cloud** takes the new Recover batch -and produces a Finalize package if AD restoration remains; **Finalize** runs on the AD server. -Cloud-only never restores AD, even with RSAT installed. Copy complete batch folders between servers; -the window does not transfer them. See the administrator guide, chapter 8. +Between two servers, an Apply writes **one transfer package** (`Backups\Outbox\PRA----for-.zip` with its checksum file). Copy that single file to the other server and use **Import package...** (or `-Batch `): 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. -![WPF Fluent window - synthetic preview, no live operation](package/docs/images/gui-fluent.png) + + + Two servers, one file. Move the mailboxes: the AD server writes one zip file, you carry it, the cloud server finishes and writes the global report. Go back: the AD server, then the cloud server, then the AD server again, with a Recover package and a Finalize package + ## Convert and Recover @@ -94,89 +181,101 @@ What a Convert changes in Active Directory (a Recover puts the saved values back | retention tag (`extensionAttribute1` by default) | → `Converted` | → `Converted` | | licence group | **added** | never | -> [!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 (guide, chapter 6). - -## Shared mailbox permissions +### Shared mailbox permissions - Shared mailbox permissions: read the 3 attributes in AD, groups expanded to users, saved in the batch, every holder checked in Exchange Online, each right granted once then re-read; FullAccess from msExchMailboxSecurityDescriptor, SendAs from the Send As right, SendOnBehalf from publicDelegates + Shared mailbox access: read in Active Directory, saved in the batch, every holder found in Exchange Online, each right granted once then read again; FullAccess from msExchMailboxSecurityDescriptor, SendAs from the Send As right, SendOnBehalf from publicDelegates Exchange on-premises is down, so the tool reads the permissions where Exchange keeps a copy: on the account of the shared mailbox in Active Directory. The preview lists who will get each right; the log has the complete lists. A permission already present in Exchange Online is only verified, never added twice. +## Console + +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](package/docs/PraRemoteMailbox-Guide.md), chapter 8. + + + + The Run page of a finished conversion: six green steps, the objects of the selected step, and the journey and backup of one mailbox + + ## Reports +Every run writes a log, a PowerShell transcript, a CSV and an HTML report. Exit codes: 0 = done, 1 = failed, 2 = done, next step required. + - - + + - - + +
Preview of a Convert
Preview · the plan of each object: only the attributes that change, the holders of each permission; nothing is written
Convert Apply
Apply · pre-check, backup, AD writes, Entra Connect, Exchange Online; summary card with the batch ID and the next command
The HTML report of one run: the word Success, the counters, and one line per person
HTML report · counters, next step, then virtualized, filterable rows (tested to 100,000 rows, at most 200 rows in the page) with a filtered CSV export; needs current desktop Edge or Chrome
The HTML report of a run with a warning on a shared mailbox, and the list of warnings below the table
Warnings · something was left aside on purpose: shown in the console, the log, the CSV and the report
HTML report
HTML report · counters, next step, then virtualized, filterable rows (tested to 100,000 rows, at most 200 rows in the page) with a filtered CSV export; needs current desktop Edge or Chrome
HTML report with a warning
Warnings · a permission of a deleted account is ignored and shown in the console, the log, the CSV and the report
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
Global report · on two servers, the last server writes one report that follows each object from the first server to the last
The global report of a rollback across three phases: Recover on the AD server, Recover on the cloud server, Finalize
Rollback · Recover on the AD server, Recover on the cloud server, then Finalize, in one report
-Every run also writes a log, a PowerShell transcript and a CSV. Exit codes: 0 = done, 1 = failed, 2 = done, next step required. - ## Requirements | Item | Requirement | |---|---| | Scenario | Hybrid Exchange organisation (Exchange Server + Exchange Online) synchronised by **Entra Connect**. Exchange on-premises is not needed (it is down); Active Directory and Entra Connect must work (both lost: [PRA Cloud Mailbox](https://github.com/Nico77600/PraCloudMailbox)) | -| PowerShell | Operations: **Windows PowerShell 5.1** (`powershell.exe`). Window: PowerShell 7.5+ for native Fluent, or Windows PowerShell 5.1 for compatible WPF controls | -| Modules | RSAT `ActiveDirectory`, `ExchangeOnlineManagement` 3.10 or later, `Microsoft.Graph.Authentication` and `Microsoft.Graph.Users` | -| Permissions | Active Directory: write the Exchange attributes of the objects in scope and the members of the licence group. Entra Connect: `ADSyncOperators` (or local administrator), WinRM when remote. Exchange Online: **Exchange Recipient Administrator**. Microsoft Graph: `User.Read.All`. Unattended runs: an application with a certificate (guide, annex C) | +| PowerShell | **PowerShell 7.5 or later** (`pwsh.exe`) for the operations and the window. Windows PowerShell 5.1 is refused (use the 2.2.x release there) | +| Modules | RSAT `ActiveDirectory` (native in PowerShell 7 on Windows 10 1809+ / Windows Server 2019+), `ExchangeOnlineManagement` 3.10 or later and `Microsoft.Graph.Authentication` / `Microsoft.Graph.Users`, installed **for PowerShell 7**; `ADSync` on the Entra Connect server (loaded through the Windows PowerShell compatibility layer when used locally) | | Licences | A licence group that gives Exchange Online to the users (shared mailboxes need no licence) | | Console | Windows Terminal for emoji and colours; the classic console shows symbols | +### Minimum permissions + +Derived from the code, not from habit: no Domain Admin, no Global Administrator. The exact table, with the place in the code that justifies each line and the commands to delegate, is in the [reference guide, chapter 4](package/docs/PraRemoteMailbox-Guide.md#permissions). + + + + The rights to ask for: Active Directory, the Entra Connect server, Microsoft 365 Graph, Exchange Online + + +| Where | Minimum | +|---|---| +| Active Directory | **Write property** on 10 Exchange attributes (`homeMDB`, `homeMTA`, `msExchHomeServerName`, `msExchMailboxGuid`, `mDBUseDefaults`, `msExchRecipientDisplayType`, `msExchRecipientTypeDetails`, `msExchRemoteRecipientType`, `targetAddress`, `proxyAddresses`) and one `extensionAttribute` (retention tag) of the objects in scope; **write** `member` of the licence group; **read** of the objects and their security descriptors. Optional forced replication: *Replication synchronization* on the domain | +| Entra Connect server | **ADSyncOperators** (or local administrator); WinRM access when remote | +| Microsoft Graph, interactive | Delegated `User.Read.All` (consent once), and a role that can read users (for example Global Reader) | +| Microsoft Graph, certificate | Application permission `User.Read.All` (admin consent) | +| Exchange Online, interactive | **Exchange Recipient Administrator** (or the role group Recipient Management) | +| Exchange Online, certificate | Application permission `Exchange.ManageAsApp` (admin consent) and the Entra role **Exchange Recipient Administrator** for the application; a CSP certificate in `CurrentUser\My` (reference guide, annex C) | + +A few points depend on Microsoft services and are flagged for a lab check in the reference guide (*What the code cannot tell you*). + ## Quick start +The short version of [Get started](#get-started), once the rights and the settings file are ready. PowerShell 7.5+, as administrator, in the tool folder: + ```powershell -git clone https://github.com/Nico77600/PraRemoteMailbox.git -cd PraRemoteMailbox -notepad .\package\config\PraRemoteMailbox.config.psd1 # scope, licence group, routing domain, Entra Connect, tenant - -# Optional window; actual operations still run in Windows PowerShell 5.1. -pwsh -STA -File .\package\Invoke-PraRemoteMailbox.ps1 -Gui - -# Command line: run these commands in Windows PowerShell 5.1. -.\package\Invoke-PraRemoteMailbox.ps1 -Action Convert -Identity jdupont@contoso.com # preview for one user: nothing is written -.\package\Invoke-PraRemoteMailbox.ps1 -Action Convert # preview of the configured scope (e.g. an OU) -.\package\Invoke-PraRemoteMailbox.ps1 -Action Convert -Phase AD -SearchBase "OU=Mailboxes,DC=contoso,DC=com" -.\package\Invoke-PraRemoteMailbox.ps1 -Action Convert -Phase Both -CsvPath .\package\config\Targets.sample.csv -.\package\Invoke-PraRemoteMailbox.ps1 -Action Convert -Mode Apply # backup, AD, sync, Exchange Online -.\package\Invoke-PraRemoteMailbox.ps1 -Action Convert -Scope SharedOnly -Mode Apply # only the shared mailboxes of the scope -.\package\Invoke-PraRemoteMailbox.ps1 -Action Recover -Batch 1d5ac20b # preview of the roll-back of that batch -.\package\Invoke-PraRemoteMailbox.ps1 -Action Recover -Batch 1d5ac20b -Mode Apply # roll the batch back -.\package\Invoke-PraRemoteMailbox.ps1 -Action Check -Identity jdupont@contoso.com # provisioned or not in Exchange Online +cd D:\PRA\PraRemoteMailbox +Get-ChildItem . -Recurse -File -Force | Unblock-File +pwsh -STA -File .\Invoke-PraRemoteMailbox.ps1 -Gui # the console: Setup, Task, Verify, Run, Next steps +.\Invoke-PraRemoteMailbox.ps1 -Action Convert -Identity alice.vance@contoso.com # or the command line: one mailbox, preview only ``` -Keep the `Backups` folder on a durable, protected volume: the backups are the only way back. The environment values of the configuration are empty in this repository. The zip of each [release](https://github.com/Nico77600/PraRemoteMailbox/releases) contains only the files needed to run; `.\tools\New-PraPackage.ps1` builds the same package from the repository. - ## Documentation -The **administrator guide** covers the disaster scenario, what changes in Active Directory, the shared mailbox permissions, installation, configuration, unattended execution with a certificate, ready-to-use recipes (one user, an OU, shared mailboxes only, a list, the roll-back, two servers), the reports, troubleshooting, the internals and the lab test campaign: +The `package` folder of this repository holds exactly the files needed to run PRA Remote Mailbox, with both guides. The zip of each [release](https://github.com/Nico77600/PraRemoteMailbox/releases) contains the same run-time files with the HTML guides; `.\tools\New-PraPackage.ps1` builds that zip content from the repository. + +| Guide | Content | +|---|---| +| **[User guide](package/docs/PraRemoteMailbox-UserGuide.md)** | **The guided path in plain words**, written for someone who has never used the tool: a checklist before you start, the rights to ask for, set up once (**1 to 4**), then **A · Move mailboxes** (one test mailbox, everyone on one server, everyone on two servers) and **B · Go back** (roll back, complete the rollback). A picture for each step, what you should see and what to do if not, a table of the common messages, and a picture dictionary. | +| **[Reference guide](package/docs/PraRemoteMailbox-Guide.md)** | Everything else: the disaster scenario, what changes in Active Directory, the shared mailbox permissions, installation, the exact minimum permissions, configuration, unattended execution with a certificate, ready-to-use recipes, the reports, troubleshooting, the internals, how to modify and test the tool, and the lab test campaign. | -- [package/docs/PraRemoteMailbox-Guide.md](package/docs/PraRemoteMailbox-Guide.md) -- `package/docs/PraRemoteMailbox-Guide.html` — the same guide as a single HTML file, with a light and a dark theme (download it and open it locally) +Both guides also exist as a single HTML file with a light and a dark theme (`package/docs/PraRemoteMailbox-UserGuide.html`, `package/docs/PraRemoteMailbox-Guide.html`): download them and open them locally, or use the copies in the release zip. The pictures are generated from synthetic data by `tools\New-DocumentationImages.ps1`. ## Tests ```powershell -# Windows PowerShell 5.1 (powershell.exe), like the tool; Pester 5+ and PSScriptAnalyzer 1.25.0 installed -powershell.exe -NoProfile -File .\tests\Invoke-TestGate.ps1 # no directory, no tenant needed +# PowerShell 7.5+ (pwsh), like the tool; Pester 5+ and PSScriptAnalyzer 1.25.0 installed +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. Earlier versions were validated on a real Active Directory, -Entra Connect and Microsoft 365 tenant (guide, annex B); **2.2.0 (unreleased source) has offline validation only, not a new -live-tenant campaign**. `tools\Build-Documentation.ps1`, which rebuilds the HTML guide on a workstation, -needs PowerShell 7.4+. +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). ## License @@ -189,4 +288,4 @@ It's provided "AS-IS". It's not an official Microsoft product so no support can As any scripts you must read carefully the documentation and test it first in a Test environment before any run in Production. -The tool changes production objects in Active Directory and creates mailboxes in Exchange Online: run the preview, review the plan, keep the backups and test in a lab before using it in a real disaster. \ No newline at end of file +The tool changes production objects in Active Directory and creates mailboxes in Exchange Online: run the preview, review the plan, keep the backups and test in a lab before using it in a real disaster. diff --git a/package/Invoke-PraRemoteMailbox.ps1 b/package/Invoke-PraRemoteMailbox.ps1 index a337855..48661bb 100644 --- a/package/Invoke-PraRemoteMailbox.ps1 +++ b/package/Invoke-PraRemoteMailbox.ps1 @@ -24,11 +24,12 @@ servers (Phase AD, then Phase Cloud with a copy of the batch folder). .PARAMETER Action - Convert, Recover, Finalize or Check. + Convert, Recover, Finalize or Check. The value is case-insensitive (convert, CONVERT); the entry script + rewrites it to its official spelling right after the parameters are bound. .PARAMETER Mode Preview (default): read, plan and report; nothing is changed. - Apply: perform the changes (one confirmation unless -Force). + Apply: perform the changes (one confirmation unless -Force or -Confirm is given, see -Force). .PARAMETER Phase Convert and Recover only. Default: Execution.Phase in the configuration. @@ -39,7 +40,10 @@ .PARAMETER Batch Batch ID printed at the end of an Apply (8 characters are enough), or the full path of the batch - JSON file. Required by: Recover (the Convert batch), -Phase Cloud (the batch of the AD part), + JSON file, or a transfer package (.zip) written by the other server (a bare file name is looked up in + \Inbox, then Outbox, then the current folder). The package is verified (checksums, + Environment, names, sizes) and extracted to private folders first; every proof check then runs unchanged. + Required by: Recover (the Convert batch), -Phase Cloud (the batch of the AD part), Finalize (the Finalize package). Optional for Check. .PARAMETER Identity @@ -48,6 +52,9 @@ .PARAMETER Scope All (default), UsersOnly or SharedOnly: filters the configured scope or the batch. + Convert with -Identity ignores -Scope: the one named object is converted whatever its type (user, shared + mailbox, room or equipment mailbox that the eligibility rules accept). -Scope still filters a batch + (Recover, cloud phase) and the Check of a whole batch. .PARAMETER SearchBase Convert AD/Both only: select an OU (distinguished name), including its child OUs, for this run. @@ -66,8 +73,23 @@ .PARAMETER ConfigPath Configuration file. Default: config\PraRemoteMailbox.config.psd1 next to this script. +.PARAMETER BaseConfigPath + Used by the window: -ConfigPath is then the generated, private configuration of ONE run (the configuration file plus the run settings + changed in the window) and -BaseConfigPath is the configuration file itself, never modified. The settings that differ are listed in the log, + the summary and the result of the run. Not needed on the command line. + +.PARAMETER ForceAdReplication + Turns Directory.ForceReplication on for this run (it is OFF by default). Before the Entra Connect synchronisation, each object changed in the run is + pushed from the domain controller that was written to the other writable domain controllers (Sync-ADObject; Directory.ReplicationTargets restricts the + list), then read back on each of them. A domain controller that does not confirm is a warning that names it; the synchronisation still runs and the + Next steps say how to run it again later. Needs the right to replicate a single object (normally Domain Admins). A Preview never replicates. + .PARAMETER Force Apply without the confirmation prompt (scheduled or unattended runs). Never skips a safety check. + The single confirmation of an Apply is also skipped when -Confirm is given explicitly, with either value: + -Confirm:$false behaves like -Force for this prompt (and for the per-write prompts, which are then off), + whereas a plain -Confirm replaces the single confirmation by the PowerShell confirmation of every write. + Use -Confirm:$false only in a scheduled or unattended run, after a Preview that was reviewed. .PARAMETER Once Cloud checks: one pass only instead of waiting (Polling.TimeoutMinutes) for the cloud. @@ -77,8 +99,7 @@ log and report paths), for a script or an orchestrator. Without it, nothing is written to the pipeline. .PARAMETER Gui - Opens the WPF window. PowerShell 7.5+ uses the native Fluent theme; Windows PowerShell 5.1 uses - compatible WPF controls. Every operation runs in its own Windows PowerShell 5.1 process. + Opens the WPF window (native Fluent theme). Every operation runs in its own PowerShell 7.5+ process (pwsh.exe). .EXAMPLE pwsh -STA -File .\Invoke-PraRemoteMailbox.ps1 -Gui @@ -110,9 +131,10 @@ .NOTES Author : Nicolas Fabert - Version : 2.2.0 - Requires : Windows PowerShell 5.1 (not PowerShell 7), RSAT ActiveDirectory, ExchangeOnlineManagement - 3.10+, Microsoft.Graph.Authentication and Microsoft.Graph.Users (cloud part), ADSync (sync). + Version : 3.0.0 + 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). Exit codes : 0 = done, 1 = failed, 2 = done but a next step is required (Pending objects). Documentation : docs\PraRemoteMailbox-Guide.md (or .html) @@ -124,7 +146,7 @@ The tool changes production objects in Active Directory and creates mailboxes in Exchange Online: run the preview, review the plan, keep the backups and test in a lab before using it in a real disaster. #> -#Requires -Version 5.1 +#Requires -Version 7.5 [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High', DefaultParameterSetName = 'Run')] param( [Parameter(Mandatory, ParameterSetName = 'Run')][ValidateSet('Convert','Recover','Finalize','Check')][string]$Action, @@ -138,6 +160,8 @@ param( [Parameter(ParameterSetName = 'Run')][ValidateRange(0, 2147483647)][int]$MaxObjects = 0, [Parameter(ParameterSetName = 'Run')][ValidateSet('Provisioned','Deprovisioned','Retained')][string]$Expect = 'Provisioned', [string]$ConfigPath, + [Parameter(ParameterSetName = 'Run')][string]$BaseConfigPath, + [Parameter(ParameterSetName = 'Run')][switch]$ForceAdReplication, [Parameter(ParameterSetName = 'Run')][switch]$Force, [Parameter(ParameterSetName = 'Run')][switch]$Once, [Parameter(ParameterSetName = 'Run')][switch]$PassThru, @@ -159,32 +183,46 @@ $ProgressPreference = 'SilentlyContinue' $cursor = [IO.Path]::GetDirectoryName($cursor) } $signature = Microsoft.PowerShell.Security\Get-AuthenticodeSignature -LiteralPath $verifier -ErrorAction Stop - if ([string]$signature.Status -cne 'Valid' -or $null -eq $signature.SignerCertificate -or - $signature.SignerCertificate.Thumbprint -cne '0F28E442889F17B5F4D251E8F96E7CC6E2C9C6D6' -or + if (-not [string]::Equals([string]$signature.Status, 'Valid', [StringComparison]::Ordinal) -or $null -eq $signature.SignerCertificate -or + -not [string]::Equals([string]$signature.SignerCertificate.Thumbprint, '0F28E442889F17B5F4D251E8F96E7CC6E2C9C6D6', [StringComparison]::Ordinal) -or $null -eq $signature.TimeStamperCertificate) { throw 'Package integrity: verifier must have the trusted, timestamped owner signature.' } & $verifier -Root $PackageRoot } $PSScriptRoot # <<< PRA package integrity bootstrap -# Not a parameter default: Windows PowerShell 5.1 leaves $PSScriptRoot empty in param() defaults when the script -# runs with powershell.exe -File (scheduled task). An explicit -ConfigPath is unchanged ($script:ConfigPathBound). +# Not a parameter default (kept from 2.x, where Windows PowerShell 5.1 left $PSScriptRoot empty in param() defaults under +# -File): the default path is computed here. An explicit -ConfigPath is unchanged ($script:ConfigPathBound). if (-not $ConfigPath) { $ConfigPath = Join-Path $PSScriptRoot 'config\PraRemoteMailbox.config.psd1' } +# ValidateSet accepts any casing (-Action convert) but binds the value AS TYPED, while the proof, batch and journal +# checks of the modules compare the official spelling, ordinally (a tampered file must not pass). +# Rewrite every ValidateSet string parameter to its official spelling NOW, before anything reads it; the +# downstream comparisons stay exactly as strict as they were. ValidateSet itself uses the CULTURE comparison (ICU): it also accepts +# "Apply" or "Apply". The lookup below is ordinal (case-insensitive) and refuses any value that has no ordinal match. +foreach ($parameterInfo in $MyInvocation.MyCommand.Parameters.Values) { + if ($parameterInfo.ParameterType -ne [string]) { continue } + $validSet = @($parameterInfo.Attributes | Where-Object { $_ -is [Management.Automation.ValidateSetAttribute] }) + if ($validSet.Count -ne 1) { continue } + $typed = [string](Get-Variable -Name $parameterInfo.Name -ValueOnly) + if (-not $typed) { continue } + $official = @($validSet[0].ValidValues | Where-Object { [string]::Equals($_, $typed, [StringComparison]::OrdinalIgnoreCase) }) + if ($official.Count -ne 1) { throw ("Parameter -{0}: '{1}' is not one of the accepted values ({2})." -f $parameterInfo.Name, $typed, ($validSet[0].ValidValues -join ', ')) } + if (-not [string]::Equals([string]$official[0], $typed, [StringComparison]::Ordinal)) { + Set-Variable -Name $parameterInfo.Name -Value ([string]$official[0]) + if ($PSBoundParameters.ContainsKey($parameterInfo.Name)) { $PSBoundParameters[$parameterInfo.Name] = [string]$official[0] } + } +} if ($Gui) { try { - Import-Module (Join-Path $PSScriptRoot 'module\PRA.Common.psm1') -Force -ErrorAction Stop + Import-Module (Join-Path $PSScriptRoot 'PraRemoteMailbox.psd1') -Force -ErrorAction Stop Import-Module (Join-Path $PSScriptRoot 'module\PRA.Gui.psm1') -Force -ErrorAction Stop - Show-PraGui -Root $PSScriptRoot -ConfigPath $ConfigPath -Version '2.2.0' + Show-PraGui -Root $PSScriptRoot -ConfigPath $ConfigPath -Version (Get-PraToolVersion) exit 0 } catch { Write-Error ('The window could not open: {0}' -f $_.Exception.Message) -ErrorAction Continue; exit 1 } } -if ($PSVersionTable.PSEdition -ne 'Desktop') { - Write-Error "$Action runs in Windows PowerShell 5.1 Desktop (powershell.exe), not PowerShell 7. Use powershell.exe -File .\Invoke-PraRemoteMailbox.ps1 with the same parameters, or -Gui for the window." -ErrorAction Continue - exit 1 -} -Import-Module (Join-Path $PSScriptRoot 'module\PRA.Common.psm1') -Force -ErrorAction Stop -Import-Module (Join-Path $PSScriptRoot 'module\PRA.Directory.psm1') -Force -ErrorAction Stop +# The manifest loads PRA.Common and PRA.Directory (and PRA.Backup through it). PRA.Cloud is imported later, only when the cloud phase needs it; PRA.Gui only for -Gui. +Import-Module (Join-Path $PSScriptRoot 'PraRemoteMailbox.psd1') -Force -ErrorAction Stop # -WhatIf always wins: the run becomes a Preview whatever -Mode says. $effectiveMode = if ($WhatIfPreference) { 'Preview' } else { $Mode } @@ -206,7 +244,7 @@ function New-PraApprovalCallback { }.GetNewClosure() } $context = @{ - Root = $PSScriptRoot; Version = '2.2.0'; RunId = ((Get-Date -Format 'yyyyMMdd_HHmmss') + '-' + [guid]::NewGuid().ToString('N')) + Root = $PSScriptRoot; Version = (Get-PraToolVersion); RunId = ((Get-Date -Format 'yyyyMMdd_HHmmss') + '-' + [guid]::NewGuid().ToString('N')) StartTime = Get-Date; Action = $Action; Mode = $effectiveMode; Phase = '' CurrentPhase = 'Start'; CurrentOperation = ''; CurrentIdentity = ''; StepIndex = 0; StepTotal = 0; Warnings = 0 Issues = (New-Object 'Collections.Generic.List[object]'); Rows = (New-Object 'Collections.Generic.List[object]') @@ -214,10 +252,10 @@ $context = @{ LogFolder = (Join-Path $PSScriptRoot 'logs'); ReportFolder = (Join-Path $PSScriptRoot 'reports'); BackupFolder = (Join-Path $PSScriptRoot 'Backups') LogFile = ''; TranscriptPath = ''; TranscriptStarted = $false; NoReport = $false Server = ''; NamingContext = ''; CloudConnectFailed = $false; ExitCode = 0; ResultStatus = '' - AllowMutation = ($effectiveMode -eq 'Apply' -and $Action -ne 'Check'); Config = @{}; KeepCloudShared = $false + AllowMutation = ((Test-PraOrdinalIgnoreCaseEqual $effectiveMode 'Apply') -and (-not (Test-PraOrdinalIgnoreCaseEqual $Action 'Check'))); Config = @{}; KeepCloudShared = $false Approval = $null; ConfirmPreference = [string]$ConfirmPreference - Once = [bool]$Once; IntervalMinutes = 0; TimeoutMinutes = 0; CloudCheckScope = 'Both' - VerboseEnabled = ($VerbosePreference -eq 'Continue' -or $DebugPreference -eq 'Continue') + Once = [bool]$Once; IntervalMinutes = 0; TimeoutMinutes = 0 + VerboseEnabled = ((Test-PraOrdinalIgnoreCaseEqual $VerbosePreference 'Continue') -or (Test-PraOrdinalIgnoreCaseEqual $DebugPreference 'Continue')) SourceBackupHash = ''; Source = $null; Proof = $null; LastVerifiedReceipt = $null; OperationFailed = $false; JournalPath = '' BatchId = ''; NextSteps = @() } @@ -234,22 +272,31 @@ function Get-PraShortId { return $Id } +function ConvertTo-PraLiteral { + <# A value as a single-quoted PowerShell literal: the apostrophe AND the typographic quotes that PowerShell also reads as quotes are doubled. #> + param([AllowEmptyString()][string]$Value) + $escaped = $Value.Replace("'", "''") + foreach ($code in @(0x2018, 0x2019, 0x201A, 0x201B)) { $quote = [string][char]$code; $escaped = $escaped.Replace($quote, $quote + $quote) } + return "'" + $escaped + "'" +} + function Get-PraCommandLine { - <# Command line suggested in "Next step", with the options of this run that still apply. #> + <# Command line suggested in "Next step", with the options of this run that still apply. Every free-text value is quoted as data. #> param([string]$ActionName, [string]$ModeName = 'Apply', [string]$PhaseName = '', [string]$BatchId = '', [switch]$KeepFilters, [switch]$OtherServer) $parts = @('.\Invoke-PraRemoteMailbox.ps1', "-Action $ActionName") if ($PhaseName) { $parts += "-Phase $PhaseName" } - if ($ModeName -eq 'Apply') { $parts += '-Mode Apply' } - if ($BatchId) { $parts += $(if ($BatchId -match '[\\/ ]') { "-Batch '$BatchId'" } else { "-Batch $BatchId" }) } + if ((Test-PraOrdinalIgnoreCaseEqual $ModeName 'Apply')) { $parts += '-Mode Apply' } + if ($BatchId) { $parts += $(if ($BatchId -match '^[0-9a-fA-F]+$') { "-Batch $BatchId" } else { '-Batch ' + (ConvertTo-PraLiteral $BatchId) }) } if ($KeepFilters) { - if ($Identity) { $parts += "-Identity '$Identity'" } - if ($Scope -ne 'All') { $parts += "-Scope $Scope" } + if ($Identity) { $parts += '-Identity ' + (ConvertTo-PraLiteral $Identity) } + if ((-not (Test-PraOrdinalIgnoreCaseEqual $Scope 'All'))) { $parts += "-Scope $Scope" } if ($MaxObjects -gt 0) { $parts += "-MaxObjects $MaxObjects" } - if ($SearchBase) { $parts += "-SearchBase '" + $SearchBase.Replace("'","''") + "'" } - if ($CsvPath) { $parts += "-CsvPath '" + $CsvPath.Replace("'","''") + "'" } + if ($SearchBase) { $parts += '-SearchBase ' + (ConvertTo-PraLiteral $SearchBase) } + if ($CsvPath) { $parts += '-CsvPath ' + (ConvertTo-PraLiteral $CsvPath) } } # On another server the configuration file is that server's own: -ConfigPath is not repeated. - if ($script:ConfigPathBound -and -not $OtherServer) { $parts += "-ConfigPath '$ConfigPath'" } + # Run from the window, -ConfigPath is the generated configuration of that run: the suggested command names the configuration file itself. + if ($script:ConfigPathBound -and -not $OtherServer) { $parts += '-ConfigPath ' + (ConvertTo-PraLiteral $(if ($BaseConfigPath) { $BaseConfigPath } else { $ConfigPath })) } return ($parts -join ' ') } @@ -267,7 +314,7 @@ function Get-PraBatchFile { param([Parameter(Mandatory)][string]$Value, [Parameter(Mandatory)][string[]]$Operations) $context.CurrentOperation = 'Resolve-Batch' $candidate = $null - if ($Value -match '[\\/:]' -or $Value -like '*.json') { + if ($Value -match '[\\/:]' -or $Value.EndsWith('.json', [StringComparison]::OrdinalIgnoreCase)) { $candidate = Resolve-PraPath $Value 'Batch' (Get-Location).Path if (Test-Path -LiteralPath $candidate -PathType Container) { $folders = @(Get-Item -LiteralPath $candidate) } elseif (Test-Path -LiteralPath $candidate -PathType Leaf) { return $candidate } @@ -278,18 +325,21 @@ function Get-PraBatchFile { $folders = @(Get-ChildItem -LiteralPath $context.BackupFolder -Directory -Recurse -ErrorAction Stop | Where-Object { $_.Name -match ('^(Batch|Finalize)-' + [regex]::Escape($Value.ToLowerInvariant())) }) if (-not $folders.Count) { throw "Batch $Value not found under $($context.BackupFolder). Copy the batch folder there (Batch-$Value... or Finalize-$Value...) or give the path of its JSON file." } - if (@($folders | Select-Object -ExpandProperty Name -Unique).Count -gt 1) { throw "Batch ID $Value is ambiguous ($($folders.Count) folders): give more characters." } + if (@($folders | ForEach-Object Name | Get-PraOrdinalUnique).Count -gt 1) { throw "Batch ID $Value is ambiguous ($($folders.Count) folders): give more characters." } } $found = New-Object 'Collections.Generic.List[string]' foreach ($folder in $folders) { - foreach ($file in @(Get-ChildItem -LiteralPath $folder.FullName -File -Filter '*.json' -ErrorAction Stop | Where-Object { $_.Name -notlike 'State-*' })) { - try { $operation = [string](([IO.File]::ReadAllText($file.FullName) | ConvertFrom-Json -ErrorAction Stop).Operation) } catch { continue } + foreach ($file in @(Get-ChildItem -LiteralPath $folder.FullName -File -Filter '*.json' -ErrorAction Stop | Where-Object { -not $_.Name.StartsWith('State-', [StringComparison]::OrdinalIgnoreCase) })) { + try { $operation = [string](([IO.File]::ReadAllText($file.FullName) | ConvertFrom-PraJson).Operation) } catch { continue } # In a Finalize package only the manifest counts (the other JSON files are copies of the source batches). - if ($operation -in $Operations -and ($folder.Name -match '^Batch-' -or $operation -eq 'RecoverFinalize')) { $found.Add($file.FullName) } + if ((Test-PraOrdinalIn $operation $Operations) -and ($folder.Name -match '^Batch-' -or (Test-PraOrdinalEqual $operation 'RecoverFinalize'))) { $found.Add($file.FullName) } } } # The same batch folder copied twice (identical content) is not an ambiguity. - $distinct = @($found | Group-Object { Get-PraHash $_ } | ForEach-Object { $_.Group[0] }) + # (Group-Object would compare the hash texts with the culture comparison.) + $byHash = New-Object 'Collections.Generic.Dictionary[string,string]' -ArgumentList ([StringComparer]::Ordinal) + foreach ($candidatePath in $found) { $candidateHash = Get-PraHash $candidatePath; if (-not $byHash.ContainsKey($candidateHash)) { $byHash[$candidateHash] = $candidatePath } } + $distinct = @($byHash.Values) if ($distinct.Count -ne 1) { throw ("Batch {0}: expected one {1} file, found {2}. Check the batch ID (the batch of the previous step is expected)." -f $Value, ($Operations -join '/'), $distinct.Count) } return $distinct[0] } @@ -302,7 +352,7 @@ function Find-PraConvertSource { #> param([Parameter(Mandatory)][string]$Hash) $found = @(Get-ChildItem -LiteralPath $context.BackupFolder -Recurse -File -Filter 'Convert-*.json.sha256' -ErrorAction Stop | Where-Object { - ([IO.File]::ReadAllText($_.FullName).Trim()) -ceq $Hash } | ForEach-Object { $_.FullName.Substring(0, $_.FullName.Length - 7) }) + [string]::Equals(([IO.File]::ReadAllText($_.FullName).Trim()), $Hash, [StringComparison]::Ordinal) } | ForEach-Object { $_.FullName.Substring(0, $_.FullName.Length - 7) }) $original = @($found | Where-Object { (Split-Path (Split-Path $_ -Parent) -Leaf) -match '^Batch-' }) if ($original.Count) { $found = $original } if (-not $found.Count) { throw "The Convert batch used by this Recover is not in $($context.BackupFolder). Copy its Batch-... folder there as well." } @@ -314,11 +364,11 @@ function Select-PraSourceRecord { param($Source) $records = @($Source.Data.Records) if ($Identity) { - $records = @($records | Where-Object { $_.SamAccountName -eq $Identity -or $_.UserPrincipalName -eq $Identity -or $_.ObjectGuid -eq $Identity }) + $records = @($records | Where-Object { (Test-PraOrdinalIgnoreCaseEqual $_.SamAccountName $Identity) -or (Test-PraOrdinalIgnoreCaseEqual $_.UserPrincipalName $Identity) -or (Test-PraOrdinalIgnoreCaseEqual $_.ObjectGuid $Identity) }) if ($records.Count -ne 1) { throw "Identity '$Identity' is not in the batch (or matches several objects)." } } - elseif ($Scope -eq 'SharedOnly') { $records = @($records | Where-Object IsShared) } - elseif ($Scope -eq 'UsersOnly') { $records = @($records | Where-Object { -not $_.IsShared }) } + elseif ((Test-PraOrdinalIgnoreCaseEqual $Scope 'SharedOnly')) { $records = @($records | Where-Object IsShared) } + elseif ((Test-PraOrdinalIgnoreCaseEqual $Scope 'UsersOnly')) { $records = @($records | Where-Object { -not $_.IsShared }) } return $records } @@ -334,7 +384,7 @@ function Initialize-PraCloudAuthority { param($Row) if (-not $capturedContext.AllowMutation -or $capturedContext.OperationFailed -or $capturedContext.Issues.Count -gt 0 -or $null -eq $capturedContext.Proof) { throw 'Cloud write refused: no authorisation or the run already has an error.' } $proof = Import-PraProof $capturedContext $capturedContext.Proof.Path $capturedContext.Source $capturedContext.Action - if (@($proof.Data.Records | Where-Object ObjectGuid -eq $Row.ObjectGuid).Count -ne 1) { throw 'Cloud write refused: the object is not in a verified AD phase.' } + if (@($proof.Data.Records | Where-Object { Test-PraOrdinalIgnoreCaseEqual $_.ObjectGuid $Row.ObjectGuid }).Count -ne 1) { throw 'Cloud write refused: the object is not in a verified AD phase.' } Assert-PraReceipt $capturedContext $capturedContext.Source $Row.ObjectGuid }.GetNewClosure() $context.JournalMutation = { param($Target, $Operation, $Status, $Detail) Write-PraJournal $capturedContext $Target $Operation $Status ([string]$Detail) }.GetNewClosure() @@ -343,7 +393,7 @@ function Initialize-PraCloudAuthority { function Initialize-PraCloudJournal { <# Private folder -cloud with the journal of the Exchange Online writes of this run. #> $directory = Join-Path $context.BackupFolder ($context.RunId + '-cloud') - New-PraPrivateDirectory $directory + New-PraPrivateDirectory $directory -Root $context.BackupFolder $context.JournalPath = Join-Path $directory 'CloudOperations.jsonl' Write-PraImmutableFile $context.JournalPath '' $context.StateFiles.Add($context.JournalPath) @@ -354,11 +404,11 @@ function Copy-PraBundleFile { param([string]$Path, [string]$Directory) $destination = Join-Path $Directory ([IO.Path]::GetFileName($Path)) if (Test-Path -LiteralPath $destination) { - if ((Get-PraHash $Path) -cne (Get-PraHash $destination)) { throw 'Two different files with the same name in the Finalize package.' } + if (-not (Test-PraOrdinalEqual (Get-PraHash $Path) (Get-PraHash $destination))) { throw 'Two different files with the same name in the Finalize package.' } return } [IO.File]::Copy($Path, $destination, $false) - if ((Get-PraHash $Path) -cne (Get-PraHash $destination)) { throw 'Copy of a proof file is incomplete.' } + if (-not (Test-PraOrdinalEqual (Get-PraHash $Path) (Get-PraHash $destination))) { throw 'Copy of a proof file is incomplete.' } } function Copy-PraBackupBundle { @@ -380,15 +430,18 @@ function Save-PraFinalizePackage { if (-not $context.AllowMutation -or -not (& $context.Approval 'AD server' 'Publish a Finalize package')) { throw 'Finalize package not authorised.' } $proof = Import-PraProof $context $context.Proof.Path $context.Source 'Recover' $items = @(foreach ($row in $Rows) { - if ($row.CloudStatus -ne 'Success' -or $row.DeprovisionConfirmed -ne $true -or $row.ADVerified -ne $true) { throw 'Finalize package refused: AD proof or cloud deprovisioning not confirmed for every object.' } + if (-not (Test-PraOrdinalEqual $row.CloudStatus 'Success') -or $row.DeprovisionConfirmed -ne $true -or $row.ADVerified -ne $true) { throw 'Finalize package refused: AD proof or cloud deprovisioning not confirmed for every object.' } [ordered]@{ ObjectGuid = $row.ObjectGuid; RestoreShared = [bool]$row.DeproPending; RestoreTag = [bool](Get-PraValue (Get-PraValue $row.BackupRec 'Retention' $null) 'Enabled' $false); CloudConfirmed = $true; DeprovisionConfirmed = $true } }) $packageId = [guid]::NewGuid().ToString('N') $directory = Join-Path $context.BackupFolder ('Finalize-' + $packageId) - New-PraPrivateDirectory $directory + New-PraPrivateDirectory $directory -Root $context.BackupFolder Copy-PraBackupBundle $context.Source $directory Copy-PraBackupBundle $proof.Receipt $directory Copy-PraBundleFile $proof.Path $directory; Copy-PraBundleFile ($proof.Path + '.sha256') $directory + # The earlier phases (Recover on the AD server, the original Convert) travel with the package, for the global report of the AD server. + $null = Copy-PraPhaseData -SourceFolder @(Get-PraList $context 'PhaseFolders') -Destination $directory + $context.PhaseWriteFolder = $directory; $context.PhaseDataSaved = $false $path = Join-Path $directory ("Finalize-$($context.Config.Environment)-$(Get-Date -Format 'yyyyMMdd_HHmmss')-$($packageId.Substring(0, 8)).json") $manifest = [ordered]@{ SchemaVersion = 2; Operation = 'RecoverFinalize'; Environment = $context.Config.Environment; CreatedUtc = [DateTime]::UtcNow.ToString('o') @@ -402,41 +455,98 @@ function Save-PraFinalizePackage { $short = Get-PraShortId $packageId $context.BatchId = $short Write-PraItem -Context $context -Status Ok -Icon Batch -Text ("Finalize package {0} written: {1}" -f $short, $directory) - $context.NextSteps = @("Copy the folder $directory to the Backups folder of the AD server, then run there:", - (Get-PraCommandLine -ActionName 'Finalize' -BatchId $short -OtherServer)) + Publish-PraTransferPackage -Kind 'Finalize' -BatchId $packageId -Folders @($directory) -NextAction 'Finalize' ` + -FallbackSteps @("Copy the folder $directory to the Backups folder of the AD server, then run there:", (Get-PraCommandLine -ActionName 'Finalize' -BatchId $short -OtherServer)) } function Get-PraFinalizeInput { <# Reads and checks a Finalize package; returns the objects it authorises to restore. #> $path = Get-PraBatchFile -Value $Batch -Operations @('RecoverFinalize') $context.CurrentOperation = 'Read-FinalizePackage' - $manifest = Get-Content -LiteralPath $path -Raw -Encoding UTF8 -ErrorAction Stop | ConvertFrom-Json -ErrorAction Stop - if ((Get-PraValue $manifest 'SchemaVersion' 0) -ne 2 -or $manifest.Operation -ne 'RecoverFinalize' -or $manifest.Environment -cne $context.Config.Environment) { throw 'Finalize package of another version or Environment: nothing restored.' } - if ((Get-Content -LiteralPath ($path + '.sha256') -Raw -ErrorAction Stop).Trim() -cne (Get-PraHash $path)) { throw 'Finalize package: SHA-256 mismatch.' } + $manifest = Get-Content -LiteralPath $path -Raw -Encoding UTF8 -ErrorAction Stop | ConvertFrom-PraJson + if ((Get-PraValue $manifest 'SchemaVersion' 0) -ne 2 -or -not (Test-PraOrdinalEqual $manifest.Operation 'RecoverFinalize') -or -not (Test-PraOrdinalEqual $manifest.Environment $context.Config.Environment)) { throw 'Finalize package of another version or Environment: nothing restored.' } + if (-not (Test-PraOrdinalEqual (Get-Content -LiteralPath ($path + '.sha256') -Raw -ErrorAction Stop).Trim() (Get-PraHash $path))) { throw 'Finalize package: SHA-256 mismatch.' } foreach ($property in @('SourceBackupFile','StateFile')) { - if ([IO.Path]::GetFileName($manifest.$property) -cne $manifest.$property) { throw 'Finalize package: a file path points outside the package.' } + if (-not (Test-PraOrdinalEqual ([IO.Path]::GetFileName($manifest.$property)) $manifest.$property)) { throw 'Finalize package: a file path points outside the package.' } } $context.Source = Import-PraBackup $context (Join-Path (Split-Path $path -Parent) $manifest.SourceBackupFile) + $context.PhaseFolders = @(Split-Path $path -Parent) $context.Proof = Import-PraProof $context (Join-Path (Split-Path $path -Parent) $manifest.StateFile) $context.Source 'Recover' - if ($context.Source.Hash -cne $manifest.SourceBackupHash -or $context.Proof.Hash -cne $manifest.StateHash) { throw 'Finalize package: manifest and proofs do not match.' } + if (-not (Test-PraOrdinalEqual $context.Source.Hash $manifest.SourceBackupHash) -or -not (Test-PraOrdinalEqual $context.Proof.Hash $manifest.StateHash)) { throw 'Finalize package: manifest and proofs do not match.' } $records = @(Select-PraSourceRecord $context.Source); $seen = @{} $items = @($manifest.Items) if (-not $items.Count) { throw 'Finalize package is empty.' } foreach ($item in $items) { if ($item.CloudConfirmed -isnot [bool] -or -not $item.CloudConfirmed -or $item.DeprovisionConfirmed -isnot [bool] -or -not $item.DeprovisionConfirmed -or $item.RestoreShared -isnot [bool] -or $item.RestoreTag -isnot [bool] -or - $item.ObjectGuid -notin @($context.Proof.Data.Records.ObjectGuid) -or $seen.ContainsKey($item.ObjectGuid)) { throw 'Finalize package: invalid object confirmation.' } - $proofEntry = @($context.Proof.Data.Records | Where-Object ObjectGuid -eq $item.ObjectGuid)[0] - $snapshotEntry = @($context.Proof.Receipt.Data.Records | Where-Object ObjectGuid -eq $item.ObjectGuid)[0] - $sourceEntry = @($context.Source.Data.Records | Where-Object ObjectGuid -eq $item.ObjectGuid)[0] - if ($snapshotEntry.PreserveCloudMailbox -or ($item.RestoreShared -and ($proofEntry.Operation -ne 'Deprovision' -or -not $sourceEntry.IsShared)) -or + -not (Test-PraOrdinalIn $item.ObjectGuid @($context.Proof.Data.Records.ObjectGuid) -IgnoreCase) -or $seen.ContainsKey($item.ObjectGuid)) { throw 'Finalize package: invalid object confirmation.' } + $proofEntry = @($context.Proof.Data.Records | Where-Object { Test-PraOrdinalIgnoreCaseEqual $_.ObjectGuid $item.ObjectGuid })[0] + $snapshotEntry = @($context.Proof.Receipt.Data.Records | Where-Object { Test-PraOrdinalIgnoreCaseEqual $_.ObjectGuid $item.ObjectGuid })[0] + $sourceEntry = @($context.Source.Data.Records | Where-Object { Test-PraOrdinalIgnoreCaseEqual $_.ObjectGuid $item.ObjectGuid })[0] + if ($snapshotEntry.PreserveCloudMailbox -or ($item.RestoreShared -and (-not (Test-PraOrdinalEqual $proofEntry.Operation 'Deprovision') -or -not $sourceEntry.IsShared)) -or ($item.RestoreTag -and -not [bool](Get-PraValue (Get-PraValue $sourceEntry 'Retention' $null) 'Enabled' $false)) -or (-not $item.RestoreShared -and -not $item.RestoreTag)) { throw 'Finalize package does not match the AD operations it proves.' } $seen[$item.ObjectGuid] = $true } - if ($Identity -and @($records | Where-Object { $_.ObjectGuid -in @($items.ObjectGuid) }).Count -ne 1) { throw "Identity '$Identity' is not authorised by this Finalize package." } + if ($Identity -and @($records | Where-Object { Test-PraOrdinalIn $_.ObjectGuid @($items.ObjectGuid) -IgnoreCase }).Count -ne 1) { throw "Identity '$Identity' is not authorised by this Finalize package." } $context.BatchId = Get-PraShortId ((Split-Path (Split-Path $path -Parent) -Leaf) -replace '^Finalize-', '') - return @($records | Where-Object { $_.ObjectGuid -in @($items.ObjectGuid) } | ForEach-Object { - [pscustomobject]@{ Record = $_; Item = ($items | Where-Object ObjectGuid -eq $_.ObjectGuid) } }) + return @($records | Where-Object { Test-PraOrdinalIn $_.ObjectGuid @($items.ObjectGuid) -IgnoreCase } | ForEach-Object { + $recordGuid = $_.ObjectGuid + [pscustomobject]@{ Record = $_; Item = ($items | Where-Object { Test-PraOrdinalIgnoreCaseEqual $_.ObjectGuid $recordGuid }) } }) +} + +function Format-PraByteSize { + param([long]$Bytes) + if ($Bytes -ge 1MB) { return ('{0:0.0} MB' -f ($Bytes / 1MB)).Replace(',', '.') } + if ($Bytes -ge 1KB) { return ('{0:0.0} KB' -f ($Bytes / 1KB)).Replace(',', '.') } + return ('{0} bytes' -f $Bytes) +} + +function Publish-PraTransferPackage { + <# + .SYNOPSIS + Hand-off: writes the ONE transfer package (ZIP + .sha256, in \Outbox) that the other server imports, and sets the + next steps. The batch folders stay the source of truth; if the package cannot be written the run keeps its result, a warning explains it + and the next steps fall back to the copy of the folders. + #> + param([Parameter(Mandatory)][string]$Kind, [Parameter(Mandatory)][string]$BatchId, [Parameter(Mandatory)][string[]]$Folders, + [Parameter(Mandatory)][string]$NextAction, [string]$NextPhase = '', [Parameter(Mandatory)][string[]]$FallbackSteps) + $targetName = if ((Test-PraOrdinalIgnoreCaseEqual $Kind 'Finalize')) { 'AD' } else { 'cloud' } + $context.CurrentOperation = 'Create-TransferPackage'; $context.CurrentIdentity = '' + # This run is not the last one: what it did travels in the package, so that the last server can report on every object from end to end. + $context.HandOff = $Kind + $phaseFolder = [string](Get-PraValue $context 'PhaseWriteFolder' '') + if ($phaseFolder -and -not [bool](Get-PraValue $context 'PhaseDataSaved' $false)) { + try { $null = Save-PraPhaseData -Context $context -Folder $phaseFolder -HandOff $Kind; $context.PhaseDataSaved = $true } + catch { Write-PraLog -Context $context -Message ('The data for the global report could not be saved ({0}): the package is complete, the other server will report this side as not available.' -f $_.Exception.Message) -Level Warning } + } + try { + $name = Get-PraTransferPackageName -Kind $Kind -Environment $context.Config.Environment -BatchId $BatchId + $command = Get-PraCommandLine -ActionName $NextAction -PhaseName $NextPhase -BatchId $name -OtherServer + $package = New-PraTransferPackage -Kind $Kind -Environment $context.Config.Environment -BatchId $BatchId -Folders $Folders ` + -OutboxFolder (Join-Path $context.BackupFolder 'Outbox') -NextCommand $command -ToolVersion $context.Version + $context.TransferPackage = $package.Path; $context.TransferPackageKind = $Kind + Write-PraItem -Context $context -Status Ok -Icon Batch -Text ('Transfer package {0} written ({1}, checksums verified)' -f $package.Name, (Format-PraByteSize $package.SizeBytes)) -Detail $package.Path + $context.NextSteps = @(('Copy {0} to the {1} server (anywhere), then run there:' -f $package.Path, $targetName), $command) + } + catch { + Write-PraLog -Context $context -Message ('The transfer package could not be created ({0}). The folders are complete: copy them by hand as indicated below.' -f $_.Exception.Message) -Level Warning + $context.NextSteps = @($FallbackSteps) + } +} + +function Resolve-PraTransferPackagePath { + <# A -Batch value ending in .zip: a path, or a bare file name looked up in Inbox, then Outbox (under Storage.BackupFolder), then the current folder. #> + param([Parameter(Mandatory)][string]$Value) + if ($Value -match '[\/:]') { + $candidate = Resolve-PraPath $Value 'Batch' (Get-Location).Path + if (-not (Test-Path -LiteralPath $candidate -PathType Leaf)) { throw "Transfer package not found: $candidate" } + return $candidate + } + foreach ($folder in @((Join-Path $context.BackupFolder 'Inbox'), (Join-Path $context.BackupFolder 'Outbox'), (Get-Location).Path)) { + $candidate = Join-Path $folder $Value + if (Test-Path -LiteralPath $candidate -PathType Leaf) { return $candidate } + } + throw "Transfer package $Value not found in $(Join-Path $context.BackupFolder 'Inbox'), in the Outbox folder or in the current folder: give its full path." } function Test-PraSyncAvailable { @@ -453,7 +563,7 @@ function Test-PraSyncAvailable { catch { throw "Entra Connect server $($sync.Server) is not reachable with PowerShell remoting (WinRM): $($_.Exception.Message). Fix the access, or set EntraConnect.Sync = `$false and run the synchronisation yourself." } Write-PraItem -Context $context -Status Ok -Icon Sync -Text ("Entra Connect: {0} reachable, a {1} cycle runs after the AD changes" -f $sync.Server, $sync.PolicyType) } - elseif (-not @(Get-Module -ListAvailable ADSync).Count) { + elseif (-not @(Get-Module -ListAvailable -SkipEditionCheck ADSync).Count) { throw 'EntraConnect.Sync = $true but the ADSync module is not on this server. Run the AD part on the Entra Connect server, set EntraConnect.Server, or set EntraConnect.Sync = $false and run the synchronisation yourself.' } else { Write-PraItem -Context $context -Status Ok -Icon Sync -Text ('Entra Connect: ADSync module found, a {0} cycle runs after the AD changes' -f $sync.PolicyType) } @@ -484,13 +594,13 @@ function Confirm-PraApply { function Show-PraPlanSummary { <# One line per planned object + totals (details of the AD attributes are shown by Write-PraAdDelta). #> param([object[]]$Plans) - $changes = @($Plans | Where-Object { $_.Operation -ne 'AlreadyRecovered' }) + $changes = @($Plans | Where-Object { -not (Test-PraOrdinalEqual $_.Operation 'AlreadyRecovered') }) $users = @($Plans | Where-Object { -not $_.Record.IsShared }).Count $shared = @($Plans | Where-Object { $_.Record.IsShared }).Count $grants = 0 foreach ($plan in $Plans) { foreach ($right in @('FullAccess','SendAs','SendOnBehalf')) { $grants += @($plan.Record.SharedPermissions.$right).Count } } $text = '{0} object(s): {1} user(s), {2} shared' -f $Plans.Count, $users, $shared - if ($Action -eq 'Convert' -and $shared) { $text += (' {0} {1} permission(s) to reproduce in Exchange Online' -f [char]0x00B7, $grants) } + if ((Test-PraOrdinalIgnoreCaseEqual $Action 'Convert') -and $shared) { $text += (' {0} {1} permission(s) to reproduce in Exchange Online' -f [char]0x00B7, $grants) } Write-PraItem -Context $context -Status Info -Icon Target -Text $text return $changes.Count } @@ -498,10 +608,21 @@ function Show-PraPlanSummary { function Skip-PraStep { <# Prints a step that does not run in this execution (numbering stays in the announced order). #> param([Parameter(Mandatory)][string]$Title, [Parameter(Mandatory)][string]$Reason, [string]$Icon = 'Skip') - Write-PraStep -Context $context -Title $Title -Icon $Icon + Write-PraStep -Context $context -Title $Title -Icon $Icon -Skipped Write-PraItem -Context $context -Status Skip -Text $Reason } +function Send-PraPlanCount { + <# Once the objects are known (after targeting), tells the window how many objects each step works on (the batch-wide steps have none). One 'count' event. #> + param([int]$Count) + if (-not $env:PRA_EVENT_FILE -or $Count -le 0) { return } + $batchWide = @('Active Directory connection', 'Entra Connect synchronisation', 'Active Directory replication', 'Creating the transfer package', 'Loading the Convert batch', 'Loading the Recover batch', + 'Loading the batch of the AD phase', 'Loading the Finalize package', 'Exchange Online pre-check') + $ids = @(); $index = 0 + foreach ($label in @($steps)) { $index++; if (-not (Test-PraOrdinalIn ([string]$label) $batchWide)) { $ids += ('s' + $index) } } + Write-PraEvent -Kind count -Data @{ count = $Count; stepIds = $ids } +} + function Get-PraSkipReason { param([bool]$HasWork = $true) if (-not $HasWork) { return 'Nothing to do.' } @@ -531,79 +652,121 @@ try { $context.TimeoutMinutes = $config.Polling.TimeoutMinutes $context.KeepCloudShared = [bool]$config.SharedMailbox.KeepCloudSharedOnRecover $defer = [bool]$config.SharedMailbox.DeferOnPremRestore + if ($ForceAdReplication -and -not [bool]$config.Directory.ForceReplication) { + $config.Directory.ForceReplication = $true + $context.ConfigOverrides = @(@(Get-PraList $context 'ConfigOverrides') + 'Directory.ForceReplication: False -> True (-ForceAdReplication)') + } + $replicate = [bool]$config.Directory.ForceReplication + # Run from the window: -ConfigPath is the generated configuration of this run, -BaseConfigPath the configuration file (never modified). + # What differs is written to the log, the summary card and the result. + $configDifferences = @() + if ($BaseConfigPath) { + $baseConfig = Import-PraConfiguration -Path $BaseConfigPath -Root $PSScriptRoot -ScopeOverride $targetOverride + $configDifferences = @(Get-PraConfigurationDifference -Base $baseConfig -Effective $config) + $context.ConfigOverrides = @(@(Get-PraList $context 'ConfigOverrides') + @($configDifferences | ForEach-Object { $_.Text })) + } $effectivePhase = switch ($Action) { 'Finalize' { 'Finalize' } 'Check' { 'Cloud' } default { if ($Phase) { $Phase } else { $config.Execution.Phase } } } $context.Phase = $effectivePhase - if (($SearchBase -or $CsvPath) -and ($Action -ne 'Convert' -or $effectivePhase -notin @('AD','Both'))) { + if (($SearchBase -or $CsvPath) -and ((-not (Test-PraOrdinalIgnoreCaseEqual $Action 'Convert')) -or (-not (Test-PraOrdinalIn $effectivePhase @('AD','Both') -IgnoreCase)))) { throw 'SearchBase/CsvPath are only available for Convert -Phase AD or Both.' } Initialize-PraAudit $context $dot = [char]0x00B7 - $modeText = if ($effectiveMode -eq 'Apply') { 'Apply (changes are made)' } else { 'Preview (nothing is changed)' } + $modeText = if ((Test-PraOrdinalIgnoreCaseEqual $effectiveMode 'Apply')) { 'Apply (changes are made)' } else { 'Preview (nothing is changed)' } $actionText = $Action - if ($Action -in @('Convert','Recover')) { $actionText += " $dot phase $effectivePhase" } - if ($Action -eq 'Check') { $actionText += " $dot expect $Expect" } + if ((Test-PraOrdinalIn $Action @('Convert','Recover') -IgnoreCase)) { $actionText += " $dot phase $effectivePhase" } + if ((Test-PraOrdinalIgnoreCaseEqual $Action 'Check')) { $actionText += " $dot expect $Expect" } $scopeText = if ($Identity) { "one object: $Identity" } - elseif ($Batch) { "batch $Batch" + $(if ($Scope -ne 'All') { " $dot $Scope" } else { '' }) } + elseif ($Batch) { "batch $Batch" + $(if ((-not (Test-PraOrdinalIgnoreCaseEqual $Scope 'All'))) { " $dot $Scope" } else { '' }) } else { $s = $config.Scope $base = switch ($s.Mode) { 'OU' { $s.SearchBase } 'Group' { "members of $($s.GroupDN)" } 'Csv' { "CSV $($s.CsvPath)" } default { if ($s.SearchBase) { $s.SearchBase } else { 'whole domain' } } } $kinds = @('users'); if ($s.IncludeShared) { $kinds += 'shared' }; if ($s.IncludeRoom) { $kinds += 'rooms' }; if ($s.IncludeEquip) { $kinds += 'equipment' } # -Scope replaces the mailbox types of the configuration. - if ($Scope -eq 'UsersOnly') { $kinds = @('users only') } elseif ($Scope -eq 'SharedOnly') { $kinds = @('shared mailboxes only') } + if ((Test-PraOrdinalIgnoreCaseEqual $Scope 'UsersOnly')) { $kinds = @('users only') } elseif ((Test-PraOrdinalIgnoreCaseEqual $Scope 'SharedOnly')) { $kinds = @('shared mailboxes only') } '{0} {1} {2}' -f $base, $dot, ($kinds -join ' + ') + $(if ($MaxObjects) { " $dot max $MaxObjects" } else { '' }) } - $banner = [ordered]@{ 'Action' = @('Mode', $actionText); 'Mode' = @($(if ($effectiveMode -eq 'Apply') { 'Write' } else { 'Plan' }), $modeText) } - if ($Action -ne 'Finalize') { $banner['Scope'] = @('Target', $scopeText) } - if ($config.Cloud.Organization -and $Action -ne 'Finalize' -and $effectivePhase -ne 'AD') { $banner['Tenant'] = @('Cloud', $config.Cloud.Organization) } + $banner = [ordered]@{ 'Action' = @('Mode', $actionText); 'Mode' = @($(if ((Test-PraOrdinalIgnoreCaseEqual $effectiveMode 'Apply')) { 'Write' } else { 'Plan' }), $modeText) } + if ((-not (Test-PraOrdinalIgnoreCaseEqual $Action 'Finalize'))) { $banner['Scope'] = @('Target', $scopeText) } + if ($config.Cloud.Organization -and (-not (Test-PraOrdinalIgnoreCaseEqual $Action 'Finalize')) -and (-not (Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'AD'))) { $banner['Tenant'] = @('Cloud', $config.Cloud.Organization) } $banner['Config'] = @('Config', ('{0} {1} Environment {2}' -f (Split-Path $config._Path -Leaf), $dot, $config.Environment)) + if ($configDifferences.Count) { $banner['Overrides'] = @('Config', ('{0} run setting(s) differ from {1}' -f $configDifferences.Count, (Split-Path $baseConfig._Path -Leaf))) } $banner['Log'] = @('Log', $context.LogFile) Write-PraBanner -Context $context -Title 'PRA Remote Mailbox' -Subtitle "Hybrid Exchange disaster recovery $dot on-premises $([char]0x2192) Exchange Online" -Details $banner + foreach ($difference in $configDifferences) { + Write-PraItem -Context $context -Status Info -Icon Config -Text ('Run setting: {0} {1} (configuration file: {2})' -f $difference.Key, $(if ($difference.Effective) { $difference.Effective } else { '(empty)' }), $(if ($difference.Base) { $difference.Base } else { '(empty)' })) + } # Steps of this run (numbered x/total in the console). $steps = switch ($Action) { 'Convert' { - if ($effectivePhase -eq 'Cloud') { @('Loading the batch of the AD phase','Exchange Online: mailboxes, licences and permissions') } + if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud')) { @('Loading the batch of the AD phase','Exchange Online: mailboxes, licences and permissions') } else { @('Active Directory connection','Targets and planned changes') + - $(if ($effectivePhase -eq 'Both') { @('Exchange Online pre-check') } else { @() }) + - @('Backup and Active Directory changes','Entra Connect synchronisation') + - $(if ($effectivePhase -eq 'Both') { @('Exchange Online: mailboxes, licences and permissions') } else { @() }) + $(if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Both')) { @('Exchange Online pre-check') } else { @() }) + + @('Backup and Active Directory changes') + $(if ($replicate) { @('Active Directory replication') } else { @() }) + @('Entra Connect synchronisation') + + $(if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Both')) { @('Exchange Online: mailboxes, licences and permissions') } else { @('Creating the transfer package') }) } } 'Recover' { - if ($effectivePhase -eq 'Cloud') { @('Loading the Recover batch','Exchange Online: deprovisioning checks','Final restore of shared mailboxes and tags') } + if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud')) { @('Loading the Recover batch','Exchange Online: deprovisioning checks','Final restore of shared mailboxes and tags') } else { - @('Loading the Convert batch','Active Directory connection','Planned restore','Backup and Active Directory changes','Entra Connect synchronisation') + - $(if ($effectivePhase -eq 'Both') { @('Exchange Online: deprovisioning checks','Final restore of shared mailboxes and tags') } else { @() }) + @('Loading the Convert batch','Active Directory connection','Planned restore') + + $(if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Both')) { @('Exchange Online pre-check') } else { @() }) + + @('Backup and Active Directory changes') + $(if ($replicate) { @('Active Directory replication') } else { @() }) + @('Entra Connect synchronisation') + + $(if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Both')) { @('Exchange Online: deprovisioning checks','Final restore of shared mailboxes and tags') } else { @('Creating the transfer package') }) } } - 'Finalize' { @('Loading the Finalize package','Active Directory connection','Planned restore','Backup and Active Directory changes','Entra Connect synchronisation') } + 'Finalize' { @('Loading the Finalize package','Active Directory connection','Planned restore','Backup and Active Directory changes') + $(if ($replicate) { @('Active Directory replication') } else { @() }) + @('Entra Connect synchronisation') } 'Check' { @('Objects to check','Exchange Online checks') } } $context.StepTotal = @($steps).Count + # The whole ordered list of steps is announced once, for the window (ids are 's' + the position, as in the step and item events). + $planSteps = @(); $planIndex = 0 + foreach ($announcedStep in @($steps)) { $planIndex++; $planSteps += [ordered]@{ id = ('s' + $planIndex); label = [string]$announcedStep; count = $null } } + Write-PraEvent -Kind plan -Data @{ steps = $planSteps } foreach ($forbidden in $config.Storage.ForbiddenBackupRoots) { if ($context.AllowMutation -and ($context.BackupFolder.TrimEnd('\') + '\').StartsWith($forbidden, [StringComparison]::OrdinalIgnoreCase)) { throw "Backup folder on a forbidden volume (Storage.ForbiddenBackupRoots): $forbidden" } } - if ($Batch -and $Action -eq 'Convert' -and $effectivePhase -ne 'Cloud') { throw '-Batch is not used by Convert on the AD side: the targets come from the configuration (or -Identity).' } - if (-not $Batch -and ($Action -in @('Recover','Finalize') -or ($Action -eq 'Convert' -and $effectivePhase -eq 'Cloud'))) { - throw ("-Batch is required for {0}{1}: give the batch ID printed at the end of the previous step." -f $Action, $(if ($effectivePhase -eq 'Cloud') { ' -Phase Cloud' } else { '' })) + if ($Batch -and (Test-PraOrdinalIgnoreCaseEqual $Action 'Convert') -and (-not (Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud'))) { throw '-Batch is not used by Convert on the AD side: the targets come from the configuration (or -Identity).' } + if (-not $Batch -and ((Test-PraOrdinalIn $Action @('Recover','Finalize') -IgnoreCase) -or ((Test-PraOrdinalIgnoreCaseEqual $Action 'Convert') -and (Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud')))) { + throw ("-Batch is required for {0}{1}: give the batch ID printed at the end of the previous step." -f $Action, $(if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud')) { ' -Phase Cloud' } else { '' })) + } + if ((Test-PraOrdinalIgnoreCaseEqual $Action 'Check') -and -not $Batch -and -not $Identity) { throw 'Check needs -Identity or -Batch.' } + if ($Batch -and $Batch.EndsWith('.zip', [StringComparison]::OrdinalIgnoreCase)) { + # A transfer package from the other server: verified completely, then extracted to private folders; -Batch becomes the batch it carries and every + # existing proof and hash check runs unchanged on the extracted folders. + $context.CurrentOperation = 'Import-TransferPackage' + $packagePath = Resolve-PraTransferPackagePath $Batch + $expectedKind = switch ($Action) { 'Recover' { if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud')) { 'Recover' } else { 'Convert' } } 'Finalize' { 'Finalize' } default { 'Convert' } } + $importRoot = $context.BackupFolder + if (-not (Test-PraOrdinalIgnoreCaseEqual $effectiveMode 'Apply')) { + $importRoot = Join-Path $context.LogFolder ('preview-' + [guid]::NewGuid().ToString('N').Substring(0, 12)) + Initialize-PraPrivateFolder -Path $importRoot + $context.PreviewStaging = $importRoot; $context.BackupFolder = $importRoot + } + $imported = Import-PraTransferPackage -Path $packagePath -BackupFolder $importRoot -Environment $config.Environment -ExpectedKind $expectedKind + Write-PraItem -Context $context -Status Ok -Icon Batch -Text ('Transfer package {0} verified (checksums, Environment, names): {1} folder(s) extracted, {2} already present and identical' -f $imported.Name, $imported.Created.Count, $imported.Existing.Count) + if ((-not (Test-PraOrdinalIgnoreCaseEqual $effectiveMode 'Apply'))) { Write-PraItem -Context $context -Status Info -Text 'Preview: the package was verified and read from a private temporary folder, deleted at the end. Nothing was written to the backup folder.' } + $Batch = [string]$imported.BatchId + if ($PSBoundParameters.ContainsKey('Batch')) { $PSBoundParameters['Batch'] = $Batch } } - if ($Action -eq 'Check' -and -not $Batch -and -not $Identity) { throw 'Check needs -Identity or -Batch.' } - $runCloud = $false; $cloudAction = $Action + $runCloud = $false; $cloudAction = $Action; $needCloudJournal = $false # --------------------------------------------------------------------------------------------- # FINALIZE - AD server, after the cloud phase of a Recover. # --------------------------------------------------------------------------------------------- - if ($Action -eq 'Finalize') { + if ((Test-PraOrdinalIgnoreCaseEqual $Action 'Finalize')) { Write-PraStep -Context $context -Title 'Loading the Finalize package' -Icon Batch $finalizeEntries = @(Get-PraFinalizeInput) + Send-PraPlanCount $finalizeEntries.Count $context.SourceBackupHash = $context.Source.Hash Write-PraItem -Context $context -Status Ok -Text ("Package {0}: {1} object(s) confirmed by Exchange Online, proofs verified" -f $context.BatchId, $finalizeEntries.Count) if (-not $context.Server) { $context.Server = [string]$context.Proof.Receipt.Data.Server } @@ -627,20 +790,27 @@ try { } Write-PraStep -Context $context -Title 'Backup and Active Directory changes' -Icon Backup $receipt = Invoke-PraAdBatch $context $plans 'Finalize' - if ($null -ne $receipt) { Write-PraStep -Context $context -Title 'Entra Connect synchronisation' -Icon Sync; Invoke-PraSync $context } - else { Skip-PraStep -Title 'Entra Connect synchronisation' -Reason (Get-PraSkipReason $plans.Count) } + if ($null -ne $receipt) { + if ($replicate) { Write-PraStep -Context $context -Title 'Active Directory replication' -Icon Directory; Invoke-PraAdReplication $context $plans } + Write-PraStep -Context $context -Title 'Entra Connect synchronisation' -Icon Sync; Invoke-PraSync $context + } + else { + if ($replicate) { Skip-PraStep -Title 'Active Directory replication' -Reason (Get-PraSkipReason $plans.Count) -Icon Directory } + Skip-PraStep -Title 'Entra Connect synchronisation' -Reason (Get-PraSkipReason $plans.Count) + } if (-not $context.AllowMutation) { $context.NextSteps = @(Get-PraCommandLine -ActionName 'Finalize' -BatchId $context.BatchId) } } # --------------------------------------------------------------------------------------------- # CONVERT - AD side (phase AD or Both). # --------------------------------------------------------------------------------------------- - elseif ($Action -eq 'Convert' -and $effectivePhase -in @('Both','AD')) { + elseif ((Test-PraOrdinalIgnoreCaseEqual $Action 'Convert') -and (Test-PraOrdinalIn $effectivePhase @('Both','AD') -IgnoreCase)) { Write-PraStep -Context $context -Title 'Active Directory connection' -Icon Directory Initialize-PraDirectory $context -ValidateScope Write-PraStep -Context $context -Title 'Targets and planned changes' -Icon Plan $targets = @(Get-PraTarget $context $Identity $Scope $MaxObjects) if (-not $targets.Count) { Write-PraItem -Context $context -Status Warn -Text 'No on-premises mailbox found in the scope: nothing to convert.' } $plans = @(foreach ($target in $targets) { New-PraPlan $context ([string]$target.ObjectGUID) 'Convert' }) + Send-PraPlanCount $plans.Count if ($plans.Count) { $null = Show-PraPlanSummary $plans Invoke-PraAdPreview $context $plans @@ -648,10 +818,10 @@ try { if ($context.AllowMutation -and $plans.Count) { Test-PraSyncAvailable $question = "Convert the {0} object(s) listed above? A backup is written first; then AD is changed{1}." -f $plans.Count, $(if ($config.EntraConnect.Sync) { ', Entra Connect synchronises' } else { '' }) - if ($effectivePhase -eq 'Both') { $question = $question.TrimEnd('.') + ' and Exchange Online is completed.' } + if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Both')) { $question = $question.TrimEnd('.') + ' and Exchange Online is completed.' } Confirm-PraApply $question } - if ($effectivePhase -eq 'Both') { + if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Both')) { if ($context.AllowMutation -and $plans.Count) { # Sign-in and identities are checked BEFORE the first AD write. Write-PraStep -Context $context -Title 'Exchange Online pre-check' -Icon Cloud @@ -665,18 +835,23 @@ try { Write-PraStep -Context $context -Title 'Backup and Active Directory changes' -Icon Backup $receipt = Invoke-PraAdBatch $context $plans 'Convert' if ($null -ne $receipt) { + $context.PhaseWriteFolder = Split-Path $receipt.Path -Parent + if ($replicate) { Write-PraStep -Context $context -Title 'Active Directory replication' -Icon Directory; Invoke-PraAdReplication $context $plans } Write-PraStep -Context $context -Title 'Entra Connect synchronisation' -Icon Sync $context.Source = $receipt $context.Proof = Import-PraProof $context $receipt.StatePath $receipt 'Convert' $context.BatchId = Get-PraShortId $receipt.Data.BatchId Invoke-PraSync $context - $runCloud = $effectivePhase -eq 'Both' - if ($effectivePhase -eq 'AD') { - $context.NextSteps = @("Copy the folder $(Split-Path $receipt.Path -Parent) to the Backups folder of the cloud server, then run there:", - (Get-PraCommandLine -ActionName 'Convert' -PhaseName 'Cloud' -BatchId $context.BatchId -OtherServer)) + $runCloud = (Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Both') + if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'AD')) { + Write-PraStep -Context $context -Title 'Creating the transfer package' -Icon Batch + Publish-PraTransferPackage -Kind 'Convert' -BatchId ([string]$receipt.Data.BatchId) -Folders @(Split-Path $receipt.Path -Parent) -NextAction 'Convert' -NextPhase 'Cloud' ` + -FallbackSteps @("Copy the folder $(Split-Path $receipt.Path -Parent) to the Backups folder of the cloud server, then run there:", + (Get-PraCommandLine -ActionName 'Convert' -PhaseName 'Cloud' -BatchId $context.BatchId -OtherServer)) } } else { + if ($replicate) { Skip-PraStep -Title 'Active Directory replication' -Reason (Get-PraSkipReason $plans.Count) -Icon Directory } Skip-PraStep -Title 'Entra Connect synchronisation' -Reason (Get-PraSkipReason $plans.Count) if ($plans.Count) { $context.NextSteps = @(Get-PraCommandLine -ActionName 'Convert' -PhaseName $(if ($Phase) { $Phase } else { '' }) -KeepFilters) } } @@ -684,12 +859,14 @@ try { # --------------------------------------------------------------------------------------------- # RECOVER - AD side (phase AD or Both). # --------------------------------------------------------------------------------------------- - elseif ($Action -eq 'Recover' -and $effectivePhase -in @('Both','AD')) { + elseif ((Test-PraOrdinalIgnoreCaseEqual $Action 'Recover') -and (Test-PraOrdinalIn $effectivePhase @('Both','AD') -IgnoreCase)) { Write-PraStep -Context $context -Title 'Loading the Convert batch' -Icon Batch $context.Source = Import-PraBackup $context (Get-PraBatchFile -Value $Batch -Operations @('Convert')) - if ($context.Source.Data.Operation -ne 'Convert') { throw 'Recover needs the original Convert batch.' } + if (-not (Test-PraOrdinalEqual $context.Source.Data.Operation 'Convert')) { throw 'Recover needs the original Convert batch.' } $context.SourceBackupHash = $context.Source.Hash $records = @(Select-PraSourceRecord $context.Source) + $context.PhaseFolders = @(Split-Path $context.Source.Path -Parent) + Send-PraPlanCount $records.Count Write-PraItem -Context $context -Status Ok -Text ("Convert batch {0}: {1} object(s) selected, backup and SHA-256 verified" -f (Get-PraShortId ([string]$context.Source.Data.BatchId)), $records.Count) Write-PraStep -Context $context -Title 'Active Directory connection' -Icon Directory Initialize-PraDirectory $context @@ -706,34 +883,53 @@ try { Test-PraSyncAvailable Confirm-PraApply ("Roll back the {0} object(s) listed above? Users get their on-premises attributes back; shared mailboxes are first deprovisioned in Exchange Online." -f $plans.Count) } + if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Both')) { + if ($context.AllowMutation -and $plans.Count) { + # Same guarantee as Convert: the Exchange Online sign-in, tenant and targets are checked (read only) + # BEFORE the first AD write, so a cloud problem does not leave AD restored and the cloud part undone. + Write-PraStep -Context $context -Title 'Exchange Online pre-check' -Icon Cloud + $context.CurrentOperation = 'CloudPreflightBeforeAD' + Import-Module (Join-Path $PSScriptRoot 'module\PRA.Cloud.psm1') -Force -ErrorAction Stop + Initialize-PraCloudPreflight -Context $context -Rows @($plans | ForEach-Object { $_.Row }) + if ($context.Issues.Count) { throw 'Exchange Online pre-check failed: no AD change made.' } + } + else { Skip-PraStep -Title 'Exchange Online pre-check' -Reason (Get-PraSkipReason $plans.Count) } + } Write-PraStep -Context $context -Title 'Backup and Active Directory changes' -Icon Backup $receipt = Invoke-PraAdBatch $context $plans 'Recover' if ($null -ne $receipt) { + $context.PhaseWriteFolder = Split-Path $receipt.Path -Parent + if ($replicate) { Write-PraStep -Context $context -Title 'Active Directory replication' -Icon Directory; Invoke-PraAdReplication $context $plans } Write-PraStep -Context $context -Title 'Entra Connect synchronisation' -Icon Sync $context.Proof = Import-PraProof $context $receipt.StatePath $context.Source 'Recover' $context.BatchId = Get-PraShortId $receipt.Data.BatchId Invoke-PraSync $context - $runCloud = $effectivePhase -eq 'Both' - if ($effectivePhase -eq 'AD') { - $context.NextSteps = @("Copy the folders $(Split-Path $receipt.Path -Parent) and $(Split-Path $context.Source.Path -Parent) to the Backups folder of the cloud server, then run there:", - (Get-PraCommandLine -ActionName 'Recover' -PhaseName 'Cloud' -BatchId $context.BatchId -OtherServer)) + $runCloud = (Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Both') + if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'AD')) { + Write-PraStep -Context $context -Title 'Creating the transfer package' -Icon Batch + Publish-PraTransferPackage -Kind 'Recover' -BatchId ([string]$receipt.Data.BatchId) -Folders @((Split-Path $receipt.Path -Parent), (Split-Path $context.Source.Path -Parent)) -NextAction 'Recover' -NextPhase 'Cloud' ` + -FallbackSteps @("Copy the folders $(Split-Path $receipt.Path -Parent) and $(Split-Path $context.Source.Path -Parent) to the Backups folder of the cloud server, then run there:", + (Get-PraCommandLine -ActionName 'Recover' -PhaseName 'Cloud' -BatchId $context.BatchId -OtherServer)) } } - elseif ($plans.Count) { $context.NextSteps = @(Get-PraCommandLine -ActionName 'Recover' -PhaseName $(if ($Phase) { $Phase } else { '' }) -BatchId $Batch -KeepFilters) } + elseif ($plans.Count) { + if ($replicate) { Skip-PraStep -Title 'Active Directory replication' -Reason (Get-PraSkipReason $plans.Count) -Icon Directory } + $context.NextSteps = @(Get-PraCommandLine -ActionName 'Recover' -PhaseName $(if ($Phase) { $Phase } else { '' }) -BatchId $Batch -KeepFilters) + } } # --------------------------------------------------------------------------------------------- # CLOUD SIDE - Convert/Recover -Phase Cloud and Check. # --------------------------------------------------------------------------------------------- else { - if ($Action -eq 'Check') { $cloudAction = if ($Expect -eq 'Deprovisioned') { 'Recover' } else { 'Convert' } } + if ((Test-PraOrdinalIgnoreCaseEqual $Action 'Check')) { $cloudAction = if ((Test-PraOrdinalIgnoreCaseEqual $Expect 'Deprovisioned')) { 'Recover' } else { 'Convert' } } $stepTitle = switch ($Action) { 'Check' { 'Objects to check' } 'Recover' { 'Loading the Recover batch' } default { 'Loading the batch of the AD phase' } } Write-PraStep -Context $context -Title $stepTitle -Icon Batch - if ($Action -eq 'Check' -and $Identity -and -not $Batch) { - if ($Identity -match '@') { $record = [pscustomobject]@{ ObjectGuid = ''; SamAccountName = $Identity; UserPrincipalName = $Identity; IsShared = ($Scope -eq 'SharedOnly') } } + if ((Test-PraOrdinalIgnoreCaseEqual $Action 'Check') -and $Identity -and -not $Batch) { + if ($Identity -match '@') { $record = [pscustomobject]@{ ObjectGuid = ''; SamAccountName = $Identity; UserPrincipalName = $Identity; IsShared = ((Test-PraOrdinalIgnoreCaseEqual $Scope 'SharedOnly')) } } else { Initialize-PraDirectory $context $user = Get-PraUser $context $Identity - $record = [pscustomobject]@{ ObjectGuid = ([guid]$user.ObjectGUID).ToString(); SamAccountName = $user.SamAccountName; UserPrincipalName = $user.UserPrincipalName; IsShared = ($user.msExchRecipientTypeDetails -in @(4, 34359738368)) } + $record = [pscustomobject]@{ ObjectGuid = ([guid]$user.ObjectGUID).ToString(); SamAccountName = $user.SamAccountName; UserPrincipalName = $user.UserPrincipalName; IsShared = ((Test-PraOrdinalIn $user.msExchRecipientTypeDetails @(4, 34359738368) -IgnoreCase)) } } $context.Rows.Add((New-PraRow $context $record)) Write-PraItem -Context $context -Status Ok -Text ("{0} ({1})" -f $record.UserPrincipalName, $(if ($record.IsShared) { 'shared mailbox' } else { 'user mailbox' })) @@ -742,10 +938,10 @@ try { # Which batch? Convert cloud phase and Check: the Convert batch. Recover cloud phase: # the Recover batch (proof of the AD part), its Convert source is found by its hash. $proofPath = '' - if ($Action -eq 'Recover') { + if ((Test-PraOrdinalIgnoreCaseEqual $Action 'Recover')) { $batchFile = Get-PraBatchFile -Value $Batch -Operations @('Recover','Convert') - $batchData = [IO.File]::ReadAllText($batchFile) | ConvertFrom-Json - if ($batchData.Operation -eq 'Recover') { + $batchData = [IO.File]::ReadAllText($batchFile) | ConvertFrom-PraJson + if (Test-PraOrdinalEqual $batchData.Operation 'Recover') { $proofPath = Join-Path (Split-Path $batchFile -Parent) ('State-' + $batchData.BatchId + '.json') $context.Source = Import-PraBackup $context (Find-PraConvertSource -Hash ([string]$batchData.SourceBackupHash)) $context.BatchId = Get-PraShortId $batchData.BatchId @@ -758,30 +954,33 @@ try { $context.BatchId = Get-PraShortId ([string]$context.Source.Data.BatchId) if (-not $context.Source.Legacy) { $proofPath = Join-Path (Split-Path $context.Source.Path -Parent) ('State-' + $context.Source.Data.BatchId + '.json') } } - if ($context.Source.Data.Operation -ne 'Convert') { throw 'The source of a cloud phase must be the original Convert batch.' } + if (-not (Test-PraOrdinalEqual $context.Source.Data.Operation 'Convert')) { throw 'The source of a cloud phase must be the original Convert batch.' } $context.SourceBackupHash = $context.Source.Hash $records = @(Select-PraSourceRecord $context.Source) if ($context.AllowMutation) { if (-not $proofPath) { throw 'This batch has no AD proof (State file): the cloud phase cannot write.' } $context.Proof = Import-PraProof $context $proofPath $context.Source $Action - Initialize-PraCloudJournal + # The journal folder is created after the operator's confirmation (below), never before it. + $needCloudJournal = $true } foreach ($record in $records) { $row = New-PraRow $context $record $originalLicensing = Get-PraValue $record 'Licensing' $null - $row.PreserveLicense = ($cloudAction -eq 'Recover') -and [bool](Get-PraValue $originalLicensing 'Enabled' $false) -and [bool](Get-PraValue $originalLicensing 'WasMember' $false) - $row.PreserveCloudMailbox = ($cloudAction -eq 'Recover') -and $row.IsShared -and $context.KeepCloudShared + $row.PreserveLicense = ((Test-PraOrdinalIgnoreCaseEqual $cloudAction 'Recover')) -and [bool](Get-PraValue $originalLicensing 'Enabled' $false) -and [bool](Get-PraValue $originalLicensing 'WasMember' $false) + $row.PreserveCloudMailbox = ((Test-PraOrdinalIgnoreCaseEqual $cloudAction 'Recover')) -and $row.IsShared -and $context.KeepCloudShared $holders = Get-PraValue $record 'SharedPermissions' $null $row.SharedFullAccess = Get-PraValue $holders 'FullAccess' @(); $row.SharedSendAs = Get-PraValue $holders 'SendAs' @(); $row.SharedSendOnBehalf = Get-PraValue $holders 'SendOnBehalf' @() if ($null -ne $context.Proof) { - $verified = @($context.Proof.Data.Records | Where-Object ObjectGuid -eq $record.ObjectGuid) + $verified = @($context.Proof.Data.Records | Where-Object { Test-PraOrdinalIgnoreCaseEqual $_.ObjectGuid $record.ObjectGuid }) if ($verified.Count -ne 1) { throw "Object not verified by the AD phase of this batch: $($record.SamAccountName)" } - $row.ADVerified = $true; $row.DeproPending = ($verified[0].Operation -eq 'Deprovision'); $row.BackupPath = $context.Proof.Receipt.Path - $provenPlan = @($context.Proof.Receipt.Data.Records | Where-Object ObjectGuid -eq $record.ObjectGuid)[0] + $row.ADVerified = $true; $row.DeproPending = (Test-PraOrdinalEqual $verified[0].Operation 'Deprovision'); $row.BackupPath = $context.Proof.Receipt.Path + $provenPlan = @($context.Proof.Receipt.Data.Records | Where-Object { Test-PraOrdinalIgnoreCaseEqual $_.ObjectGuid $record.ObjectGuid })[0] $row.PreserveCloudMailbox = [bool]$provenPlan.PreserveCloudMailbox; $row.PreserveLicense = [bool]$provenPlan.PreserveLicense } $context.Rows.Add($row) } + $context.PhaseFolders = @(@(Split-Path $context.Source.Path -Parent) + $(if ($proofPath) { @(Split-Path $proofPath -Parent) } else { @() })) + Send-PraPlanCount $context.Rows.Count Write-PraItem -Context $context -Status Ok -Text ("Batch {0}: {1} object(s){2}" -f $context.BatchId, $records.Count, $(if ($null -ne $context.Proof) { ', AD proof verified' } else { '' })) } $runCloud = $true @@ -793,36 +992,37 @@ try { if ($runCloud -and $context.Rows.Count -gt 0) { if ($context.Issues.Count) { throw 'Cloud part not started: the AD part has errors.' } $cloudTitle = switch ($cloudAction) { 'Recover' { 'Exchange Online: deprovisioning checks' } default { 'Exchange Online: mailboxes, licences and permissions' } } - if ($Action -eq 'Check') { $cloudTitle = 'Exchange Online checks' } + if ((Test-PraOrdinalIgnoreCaseEqual $Action 'Check')) { $cloudTitle = 'Exchange Online checks' } Write-PraStep -Context $context -Title $cloudTitle -Icon Cloud # A preview of the cloud phase looks once: it never waits for the cloud. - if (-not $context.AllowMutation -and $Action -ne 'Check') { $context.Once = $true } - if ($context.AllowMutation -and $effectivePhase -eq 'Cloud' -and $Action -eq 'Convert') { + if (-not $context.AllowMutation -and (-not (Test-PraOrdinalIgnoreCaseEqual $Action 'Check'))) { $context.Once = $true } + if ($context.AllowMutation -and (Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud') -and (Test-PraOrdinalIgnoreCaseEqual $Action 'Convert')) { $grants = 0; foreach ($row in $context.Rows) { $grants += @($row.SharedFullAccess).Count + @($row.SharedSendAs).Count + @($row.SharedSendOnBehalf).Count } Confirm-PraApply ("Complete {0} object(s) in Exchange Online (wait for the mailboxes, grant up to {1} shared mailbox permission(s))?" -f $context.Rows.Count, $grants) } - elseif ($context.AllowMutation -and $effectivePhase -eq 'Cloud' -and $Action -eq 'Recover') { + elseif ($context.AllowMutation -and (Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud') -and (Test-PraOrdinalIgnoreCaseEqual $Action 'Recover')) { Confirm-PraApply ("Check the deprovisioning of {0} object(s) in Exchange Online, then package any final shared mailbox and tag restoration for the AD server?" -f $context.Rows.Count) } + if ($needCloudJournal) { Initialize-PraCloudJournal } Initialize-PraCloudAuthority Import-Module (Join-Path $PSScriptRoot 'module\PRA.Cloud.psm1') -Force -ErrorAction Stop - if ($Action -eq 'Check' -and $Expect -eq 'Retained') { Invoke-PraRetentionCheck -Context $context -Rows $context.Rows.ToArray() } + if ((Test-PraOrdinalIgnoreCaseEqual $Action 'Check') -and (Test-PraOrdinalIgnoreCaseEqual $Expect 'Retained')) { Invoke-PraRetentionCheck -Context $context -Rows $context.Rows.ToArray() } else { Invoke-PraCloudPhase -Context $context -Rows $context.Rows.ToArray() -Act $cloudAction } - if ($context.Issues.Count -or @($context.Rows | Where-Object CloudStatus -eq 'Error').Count) { throw 'Exchange Online check failed: no restore or clean-up is done.' } + if ($context.Issues.Count -or @($context.Rows | Where-Object { Test-PraOrdinalEqual $_.CloudStatus 'Error' }).Count) { throw 'Exchange Online check failed: no restore or clean-up is done.' } # Recover: shared mailboxes (deprovisioned in the cloud) and retention tags are restored only now. - if ($Action -eq 'Recover') { + if ((Test-PraOrdinalIgnoreCaseEqual $Action 'Recover')) { Write-PraStep -Context $context -Title 'Final restore of shared mailboxes and tags' -Icon Write if ($context.AllowMutation) { $tagged = @($context.Rows | Where-Object { [bool](Get-PraValue (Get-PraValue $_.BackupRec 'Retention' $null) 'Enabled' $false) }) foreach ($row in $tagged | Where-Object PreserveCloudMailbox) { $row.FinalStatus = 'Pending'; $row.Detail += ' | Cloud mailbox kept on purpose: the retention tag stays.' } - $followup = @($context.Rows | Where-Object { -not $_.PreserveCloudMailbox -and ($_.DeproPending -or $_ -in $tagged) }) - foreach ($row in $followup) { if ($row.CloudStatus -ne 'Success' -or $row.DeprovisionConfirmed -ne $true -or $row.ADVerified -ne $true) { throw 'Cloud deprovisioning or AD proof not confirmed: restore and tag clean-up blocked.' } } + $followup = @($context.Rows | Where-Object { -not $_.PreserveCloudMailbox -and ($_.DeproPending -or $tagged.Contains($_)) }) + foreach ($row in $followup) { if (-not (Test-PraOrdinalEqual $row.CloudStatus 'Success') -or $row.DeprovisionConfirmed -ne $true -or $row.ADVerified -ne $true) { throw 'Cloud deprovisioning or AD proof not confirmed: restore and tag clean-up blocked.' } } if (-not $followup.Count) { Write-PraItem -Context $context -Status Skip -Text 'Nothing left to restore.' } - elseif ($effectivePhase -eq 'Cloud' -or $defer -or -not @(Get-Module -ListAvailable ActiveDirectory).Count) { - if ($effectivePhase -eq 'Cloud') { Write-PraItem -Context $context -Status Info -Text 'Cloud-only phase: final AD restoration is packaged for Finalize on the AD server.' } + elseif ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud') -or $defer -or -not @(Get-Module -ListAvailable ActiveDirectory).Count) { + if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud')) { Write-PraItem -Context $context -Status Info -Text 'Cloud-only phase: final AD restoration is packaged for Finalize on the AD server.' } elseif (-not $defer) { Write-PraItem -Context $context -Status Info -Text 'ActiveDirectory module not found on this server: the restore is packaged for the AD server.' } Save-PraFinalizePackage $followup } @@ -838,12 +1038,13 @@ try { }) Invoke-PraAdPreview $context $plans $null = Invoke-PraAdBatch $context $plans 'Finalize' + if ($replicate) { Invoke-PraAdReplication $context $plans } Invoke-PraSync $context } } else { Write-PraItem -Context $context -Status Skip -Text 'Preview: nothing restored.' } } - if (-not $context.AllowMutation -and $Action -in @('Convert','Recover') -and -not $context.NextSteps.Count) { + if (-not $context.AllowMutation -and (Test-PraOrdinalIn $Action @('Convert','Recover') -IgnoreCase) -and -not $context.NextSteps.Count) { $context.NextSteps = @(Get-PraCommandLine -ActionName $Action -PhaseName 'Cloud' -BatchId $Batch -KeepFilters) } } @@ -853,8 +1054,8 @@ try { $announced = @($steps) for ($i = [int]$context.StepIndex; $i -lt $announced.Count; $i++) { Skip-PraStep -Title $announced[$i] -Reason (Get-PraSkipReason ($context.Rows.Count -gt 0)) } - if ($context.AllowMutation -and $Action -eq 'Convert' -and $effectivePhase -in @('Both','Cloud') -and $context.BatchId -and -not $context.Issues.Count) { - $context.NextSteps = @($(if ($effectivePhase -eq 'Cloud') { 'To roll back this batch later, on the AD server: ' + (Get-PraCommandLine -ActionName 'Recover' -ModeName 'Preview' -BatchId $context.BatchId -OtherServer) } else { 'To roll back this batch later: ' + (Get-PraCommandLine -ActionName 'Recover' -ModeName 'Preview' -BatchId $context.BatchId) })) + if ($context.AllowMutation -and (Test-PraOrdinalIgnoreCaseEqual $Action 'Convert') -and (Test-PraOrdinalIn $effectivePhase @('Both','Cloud') -IgnoreCase) -and $context.BatchId -and -not $context.Issues.Count) { + $context.NextSteps = @($(if ((Test-PraOrdinalIgnoreCaseEqual $effectivePhase 'Cloud')) { 'To roll back this batch later, on the AD server: ' + (Get-PraCommandLine -ActionName 'Recover' -ModeName 'Preview' -BatchId $context.BatchId -OtherServer) } else { 'To roll back this batch later: ' + (Get-PraCommandLine -ActionName 'Recover' -ModeName 'Preview' -BatchId $context.BatchId) })) } } catch { @@ -875,6 +1076,13 @@ catch { } finally { Initialize-PraPermissionCache -Context $context + if ([string](Get-PraValue $context 'PreviewStaging' '')) { + try { [IO.Directory]::Delete($context.PreviewStaging, $true) } catch { try { Write-PraLog -Context $context -Message ('The temporary Preview folder could not be deleted: {0}' -f $_.Exception.Message) -Level Detail } catch { $null = $_ } } + } + if ($context.AllowMutation -and [string](Get-PraValue $context 'PhaseWriteFolder' '') -and -not [bool](Get-PraValue $context 'PhaseDataSaved' $false)) { + try { $null = Save-PraPhaseData -Context $context -Folder $context.PhaseWriteFolder; $context.PhaseDataSaved = $true } + catch { Write-PraLog -Context $context -Message ('The data for the global report could not be saved ({0}).' -f $_.Exception.Message) -Level Detail } + } if (Get-Command Close-PraCloudSession -ErrorAction SilentlyContinue) { try { Close-PraCloudSession -Context $context } catch { $context.Issues.Add([pscustomobject]@{ Message = "Cloud sign-out: $($_.Exception.Message)"; Source = 'Cloud' }) } } @@ -884,10 +1092,10 @@ finally { } # SIG # Begin signature block -# MIIghgYJKoZIhvcNAQcCoIIgdzCCIHMCAQExDzANBglghkgBZQMEAgEFADB5Bgor +# MIImKwYJKoZIhvcNAQcCoIImHDCCJhgCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCpjqYhB1xOrtKu -# ss0ziKekOhi72NF6k9P3wp6stV7Nx6CCDW8wggZyMIIEWqADAgECAghkM1HTxzif +# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCAN4PAFJSz2zQQ +# Gwe+twn/3/mYLIv98VXJbULaXK3Kd6CCDW8wggZyMIIEWqADAgECAghkM1HTxzif # CDANBgkqhkiG9w0BAQsFADB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx # EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8G # A1UEAw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T119mYcETycE2NYGRXsBl3N0rzDsHRr8P3TrprqhRrX04iS0P7eQ+lDxgS3yhGn +# 3OzWGhDt9Gf2x1qe0/qdhFAVOkXxzMZz4Uat6xsAfzX0+/m8GEKW5Ojw/HY+kLvV +# wzSPOzGCAlcwggJTAgEBMIGGMHIxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhh +# czEQMA4GA1UEBwwHSG91c3RvbjERMA8GA1UECgwIU1NMIENvcnAxLjAsBgNVBAMM +# JVNTTC5jb20gVGltZXN0YW1waW5nIElzc3VpbmcgUlNBIENBIDICEFRD+De9Wu4Y +# AYRyuFzajuMwCwYJYIZIAWUDBAIBoIIBYDAaBgkqhkiG9w0BCQMxDQYLKoZIhvcN +# AQkQAQQwHAYJKoZIhvcNAQkFMQ8XDTI2MTEwNTA4MDYzM1owKAYJKoZIhvcNAQk0 +# MRswGTALBglghkgBZQMEAgGhCgYIKoZIzj0EAwIwLwYJKoZIhvcNAQkEMSIEIF0i +# BU8I4C5c+wIx/OLtoNifPSSKqDTWgUbaZJhOxbcGMIHIBgsqhkiG9w0BCRACLzGB +# uDCBtTCBsjCBrwQgV0/qF6r6XnxqK5sIyZixc15FCzhzykTmokygkw5j87AwgYow +# dqR0MHIxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91 +# c3RvbjERMA8GA1UECgwIU1NMIENvcnAxLjAsBgNVBAMMJVNTTC5jb20gVGltZXN0 +# YW1waW5nIElzc3VpbmcgUlNBIENBIDICEFRD+De9Wu4YAYRyuFzajuMwCgYIKoZI +# zj0EAwIESDBGAiEA/47ZDiMY3Nf7Jxm/ld/a6bj/H0pwv68on85J1uIoSKACIQDo +# AuhCh/62oIm0zWH78l0Au1MBcJHIQVNQRDtxjbBmGw== # SIG # End signature block diff --git a/package/PackageIntegrity.psd1 b/package/PackageIntegrity.psd1 index c0ae6fc..91741e8 100644 --- a/package/PackageIntegrity.psd1 +++ b/package/PackageIntegrity.psd1 @@ -1,50 +1,98 @@ -# PRA Remote Mailbox 2.2.0 - authenticated package integrity manifest +# PRA Remote Mailbox 3.0.0 - authenticated package integrity manifest # Generated only after the final stable-file signatures and timestamps. @{ SchemaVersion = 1 Algorithm = 'SHA256' SignerThumbprint = '0F28E442889F17B5F4D251E8F96E7CC6E2C9C6D6' Files = @( - @{ Path = 'Invoke-PraRemoteMailbox.ps1'; Sha256 = '6DD311E48D1A27025D5E8DFAC1EABEFA0816B148B95A89F745D784E5CF96E346' } - @{ Path = 'module\PRA.Common.psm1'; Sha256 = 'BE5862F89963DAF99A3886CCCF253563384414172B1CB310667A7B63E4031552' } - @{ Path = 'module\PRA.Directory.psm1'; Sha256 = '5F3EBD0788E508464D2E479E06CF580301DB5EC4881383C8F247AEE365F97C91' } - @{ Path = 'module\PRA.Backup.psm1'; Sha256 = 'AD48248F353D96EA880F62F735E01D5C4DF3D933B52589A7B16BB4C08B4F8C75' } - @{ Path = 'module\PRA.Cloud.psm1'; Sha256 = '954C114D3FD951CFB5C6AB2AA1EE4A82585681FF29D4AFD31AD7D1FC34B71982' } - @{ Path = 'module\PRA.Gui.psm1'; Sha256 = '4D0F6D4BE4250A2CCDFC16471F5784D51F6B52AC2FBEAAFBF728CDE8C45E34DF' } - @{ Path = 'module\PRA.Gui.Directory.ps1'; Sha256 = '6D56397B34C7BCD8F662CC4D15009797E5BB940C984DC7928D8747B18414B00D' } - @{ Path = 'module\Test-PackageIntegrity.ps1'; Sha256 = 'BA9BD1786345ADA21DB67694B51C86CD7C3348C7EF5AF158E0B41D1CA705F78B' } - @{ Path = 'module\PRA.Gui.xaml'; Sha256 = '56BC119F3D3B4A0B2E5EBE625D094F81C12817EA4611ADCCC44E07E1AD54D633' } - @{ Path = 'templates\Report.template.html'; Sha256 = '3957F1B1461611A93BED834AE254B6BC6BD165C9719066F5EDFB9A3CAFB5174B' } + @{ Path = 'Invoke-PraRemoteMailbox.ps1'; Sha256 = 'FCE57F2B33149402A2A884533559777124A2BB76FE5EB125C1B6E9DC1737999C' } + @{ Path = 'PraRemoteMailbox.psd1'; Sha256 = 'B7D2890753AD52AC420EB97F2B321A2C35C064E8D75B827489D78AC2B11440D7' } + @{ Path = 'PraRemoteMailbox.psm1'; Sha256 = '06BAE379A10027C0A58C99E9C2F2A3C1B757B303FFEAA9B3BA89042F4F5F5366' } + @{ Path = 'module\PRA.Common.psm1'; Sha256 = '87DF89CC85EC25607E52EA6DFA34B0BB10B05A6D2008BE7D1E7C84C8F8FD0AAE' } + @{ Path = 'module\PRA.Directory.psm1'; Sha256 = 'FDBCCBED75FF2EB8D5C9DA18923F0E24E1B7AA41CA5BE49461F76D089873F078' } + @{ Path = 'module\PRA.Backup.psm1'; Sha256 = '356735A155DA7F33A672643B4792F61A9C2DD0FE673545A5D3C0740159FC7844' } + @{ Path = 'module\PRA.Cloud.psm1'; Sha256 = '8A1D48D08FBBDBB943949EA721AD27FB821CB586FFC5F8C7E34206A8B32D4CD8' } + @{ Path = 'module\PRA.Gui.psm1'; Sha256 = '3E7A766092EBE5186BB3D4C974945B5994391B08A87266AA117F050388DB0EE3' } + @{ Path = 'module\PRA.Gui.Directory.ps1'; Sha256 = '8417335C0A72F8BC0D66DF3445327C8AA78B30DC510F0682103E8D5E032E5D3D' } + @{ Path = 'module\Test-PackageIntegrity.ps1'; Sha256 = 'C5DA9BA299D304F4927E75C9FDDAFD823D4E7EF001B68CF921B3045BF2A5672F' } + @{ Path = 'module\PRA.Gui.xaml'; Sha256 = '47BA5AAE1874D1EDD246B993EFE1F16E30A6E5A4F5B2B1CD23218FE25808CB38' } + @{ Path = 'templates\Report.template.html'; Sha256 = '4B6883054F5153259AB2870FA55A1A30AF7D686BEB33A1B3FE99E315FFEB0611' } @{ Path = 'config\Targets.sample.csv'; Sha256 = '564C746AFDE5A5EADEBFD4449A7BB372B4D63E8B7C8352ACF825458650A458EF' } @{ Path = 'config\SharedPermissions.sample.csv'; Sha256 = '7838261190B01E705505EAE8C1664FCFD9143E4E3F39D3E0968A02A0B7951B5F' } - @{ Path = 'README.md'; Sha256 = 'FFA7734444412C484B867F37045DF94876E0A9D7C1BB99FAB1B85C31EDB714DB' } + @{ Path = 'README.md'; Sha256 = '4E5721E065D0BF77C33ABB611AB130B1FD49E0AE2791CDCCB4AD98E42FC43880' } @{ Path = 'LICENSE'; Sha256 = 'A91A28EED601C15D06E439F83666F0EBE1AA7897DE37D350108147C7804FD94B' } - @{ Path = 'docs\PraRemoteMailbox-Guide.html'; Sha256 = '98CDDE6FAA0EA1128E9EA59759FEFC9E10E63BDB719E2847409DCD7C82A134F2' } - @{ Path = 'docs\PraRemoteMailbox-Guide.md'; Sha256 = 'ABA1C27D83902075E1B27BA527B3A946394DB9441463D1287A8B2A96004A93C3' } - @{ Path = 'docs\images\console-apply.png'; Sha256 = 'C65D5B92591A3E37C9E0C4491F6A7A80B7D16532122816ED8F47CE1B9E179D1E' } - @{ Path = 'docs\images\console-preview.png'; Sha256 = '31467C68B0D2FEB9E595351A300012F12E25FD0C361FCDEBD3C4AA5802A55B6E' } - @{ Path = 'docs\images\gui-fluent.png'; Sha256 = '9AF642ACCFED616A99E4A83F892BFF650C90E663D978706B5BDC79A19254E9A8' } - @{ Path = 'docs\images\readme-banner-dark.png'; Sha256 = '76C7ABE36BFB819216A5F49CB1DAEB6D903CA95DBC1580562E69776C00F562D7' } - @{ Path = 'docs\images\readme-banner-light.png'; Sha256 = '6DC70A2FFC5075D0AFDF81554D1790D3958F3DDDED22A682F9238CF7A9B27ABA' } - @{ Path = 'docs\images\readme-flows-dark.png'; Sha256 = 'FE20BEFBD53D99EAF3ECDC460A6A1D29BFDBF225F87C6A762A4C9940259FEE9A' } - @{ Path = 'docs\images\readme-flows-light.png'; Sha256 = 'DD71C49C5B99CAF371A92645CBC531F80604CD252B24E5A31E7056544EF6CBEF' } - @{ Path = 'docs\images\readme-how-dark.png'; Sha256 = '9CFA889F4790EAA6A38DCD198A31BA4988A3B5A9D17FB0870E8E4349A8C7F3D8' } - @{ Path = 'docs\images\readme-how-light.png'; Sha256 = '9A339B1BB85CDF6B030B8A3B9619490CF7FEFA3D5ED6ADE26D7D82EBFF9E1F09' } - @{ Path = 'docs\images\readme-permissions-dark.png'; Sha256 = '4132480C47D0B077087F03E783701DA24DAD6381B6141781E23752E33F6E3613' } - @{ Path = 'docs\images\readme-permissions-light.png'; Sha256 = 'DB705482D633EDD17E8558838ECF3418FCCCE06146516E69183FEA3288089F07' } - @{ Path = 'docs\images\readme-principles-dark.png'; Sha256 = '0A41BDBEADB03DB5CD23926F11BCEA0676E13C905C81687E330DD3E2854085ED' } - @{ Path = 'docs\images\readme-principles-light.png'; Sha256 = 'DFDAADE0A9572D623717B25FBB0D11FA31899C96B9AF3333B76EC06451C4E39A' } - @{ Path = 'docs\images\report-warning.png'; Sha256 = '7908923CC798FF608B6E299992F7038CE3083EB8A79F4BECC1BB65B7107DEA31' } - @{ Path = 'docs\images\report.png'; Sha256 = '1348E449D5CEFC85829FB453113854C11A061837A1CFDA06F5EDF1E9C0287328' } - @{ Path = 'CHANGELOG.md'; Sha256 = 'B458B0ED23BD7DCB95E69A711E826E9F48D8458A1A459FBE1D79A4C837820FFC' } + @{ Path = 'docs\PraRemoteMailbox-Guide.html'; Sha256 = '09B0B0C3A5164C93F7F3BF81B3666FE95A8631336DDA72D109AB72A29A34F9C1' } + @{ Path = 'docs\PraRemoteMailbox-Guide.md'; Sha256 = '4F0CE5FDC5FC142348AE687C93284DF5ED53DBD08374710CE443FF0D13A79125' } + @{ Path = 'docs\PraRemoteMailbox-UserGuide.html'; Sha256 = '830DE18C4232CD6C1973499E01116C94187BAFC76A3E61CB7A00579A2647E7CA' } + @{ Path = 'docs\PraRemoteMailbox-UserGuide.md'; Sha256 = 'C2AB2DC563A4D5AC5CBD4A65204D6672CC39D4DCE39EA5E5034E053AE1830244' } + @{ Path = 'docs\images\console-next-cloud-light.png'; Sha256 = 'AC1E971A4CCBC7D5555947A881A1490C91215444527F5E942783A8ADA1E23B93' } + @{ Path = 'docs\images\console-next-global-light.png'; Sha256 = 'D084158045391FA5DBBE274BD3735E6CEE4056C8C550E34D382E7A2A6EDA9780' } + @{ Path = 'docs\images\console-next-light.png'; Sha256 = 'EE50CF2D559AF42ADFCFE0241E2C8CAA02434BBD38C9DD6029D59C8994843334' } + @{ Path = 'docs\images\console-next-package-light.png'; Sha256 = 'DCA092D03B65878D58DE256BF1F5D2DB4A913F8FB689E58FC1E291B2E9655D2C' } + @{ Path = 'docs\images\console-next-rollback-light.png'; Sha256 = '4677C31E76576E341F071AECE7E9E0BA4D10E421C37A4BE44089983D1779E054' } + @{ Path = 'docs\images\console-run-cloud-light.png'; Sha256 = '7CD48895D18FFF6CB8E17C7F2836407A88EF183C8198063995CE28F37789CCA3' } + @{ Path = 'docs\images\console-run-early-light.png'; Sha256 = 'CB32F3BABB01236306E0B2FAEA6354DA8E22B06EF343BFE6249A2010CEC4511D' } + @{ Path = 'docs\images\console-run-finished-dark.png'; Sha256 = '1D4F9D07BFF49BE5566094F7213CB80A5D25570B68E8239A3AB27D5E2F40A110' } + @{ Path = 'docs\images\console-run-finished-light.png'; Sha256 = '075F580A6195348C764883090EBA6537DBEA9843DFBF30A487AF523106577412' } + @{ Path = 'docs\images\console-run-grant-light.png'; Sha256 = '27290C60DC677E348E5068A9EBA8A2213C8CF6EC623485B9A46836E47CBFD55D' } + @{ Path = 'docs\images\console-run-package-light.png'; Sha256 = '8EA7398888AC7C5E77E506E09516E98E819E76CB2B7FC44A3A346974A5FBA66A' } + @{ Path = 'docs\images\console-run-rollback-light.png'; Sha256 = 'FB6D012AD4B39EF2DB85D708E40BEC40C25E20D7082203DA7E1EB65B8E15C5A1' } + @{ Path = 'docs\images\console-run-waiting-light.png'; Sha256 = '081CD45A8D5D367703D3DEC47CEB159B300CD712279FA7E9C48F0B0040632AA5' } + @{ Path = 'docs\images\console-settings-light.png'; Sha256 = '5D28ACCB0DE906B51C3E5334B10604E9E78D5838325DC67329F37A158D6E92E9' } + @{ Path = 'docs\images\console-setup-dark.png'; Sha256 = '08F3236A59EDC729F8F6CDF8B9F2E8ECD62B376B9DA58242412E7AEA89E23DBE' } + @{ Path = 'docs\images\console-setup-light.png'; Sha256 = 'FF89C84845D7966CF75924985472AAB4DC43314AED65E3DE5C86EBB9D9744388' } + @{ Path = 'docs\images\console-setup-lights-light.png'; Sha256 = '70C433BE657D74696805B363A095481D01D05BA6D53B8A7E07C46CCFDC9AF661' } + @{ Path = 'docs\images\console-setup-next-light.png'; Sha256 = 'D2543DB9B5998E9CB2CC1EF56D1614927717BE6B5BBE4A52A539CD90E60FE454' } + @{ Path = 'docs\images\console-setup-red-light.png'; Sha256 = '819519CB38A17426D253AD6335DFC954025EA78C90A38DFC9218DD236D97E4C4' } + @{ Path = 'docs\images\console-setup-red-lights-light.png'; Sha256 = 'AB61C5EC0581AA07774C6343FE0A3AA72F4C8E92DD823C476513FB354E7E34AC' } + @{ Path = 'docs\images\console-task-ad-light.png'; Sha256 = '7D85AFD964FDAA7D5AA0C31B162220BE09C6D784F4FA0EB0B26499D880D4B0DC' } + @{ Path = 'docs\images\console-task-check-light.png'; Sha256 = 'AF7C56A80AE52CEA7FEB264F24CF5C3DBA0707C755B81CEB722AB17775772B45' } + @{ Path = 'docs\images\console-task-continue-light.png'; Sha256 = '55EB5D622469741415C19DC12916C01940099B0AD9EB37E394E87757E36483BA' } + @{ Path = 'docs\images\console-task-finalize-light.png'; Sha256 = '24C0E33CC831C9AF36C6B9582BFA52DA0A10B6AB29148832B47AB707DF193B3C' } + @{ Path = 'docs\images\console-task-identity-light.png'; Sha256 = '9F0BD730AF47DDB234F1011E4E843A8D1DCF5A116155E494C675CDCAFADF5739' } + @{ Path = 'docs\images\console-task-light.png'; Sha256 = '6BF3AB7A52FD346C7E944C6E3031A12E9F028164B05AA6B0E52F0DA7F4C00584' } + @{ Path = 'docs\images\console-task-package-selected-light.png'; Sha256 = '669B3D423D376D7EF34F016C75FA770C9C0FCE73A37AE36F5E2346283EC64DDD' } + @{ Path = 'docs\images\console-task-rollback-light.png'; Sha256 = '870C93F165E3EC9DD9B93A0B34366D9D422C732F3D968FDDF23176BBD592A174' } + @{ Path = 'docs\images\console-task-rollback-selected-light.png'; Sha256 = 'BC51B4C88DBEE074885A7CE6BCF0FF9CE67FA36F05FDFF8704A06EDEF98FC5F9' } + @{ Path = 'docs\images\console-task-scope-light.png'; Sha256 = '030291F8750C28E77E0E3C20E8ED1BF5BCFBDFF254CF6EA0297F1A46261D9ED6' } + @{ Path = 'docs\images\console-verify-before-light.png'; Sha256 = '19DA56A358D0E06CCF14500EFAC11476EBCE938EB2EBD8CF305FBC14B54287B6' } + @{ Path = 'docs\images\console-verify-check-light.png'; Sha256 = '98B7B631026F1690004E961B614DB005A992DFAFF7AA36251F866BF9AA1031DD' } + @{ Path = 'docs\images\console-verify-cloud-light.png'; Sha256 = '78CD3673F6027C35C3DC4BC1C18BB485275E9E49A8164F647513455A0FF592F2' } + @{ Path = 'docs\images\console-verify-light.png'; Sha256 = 'A3FAC4D987A30668645E05D30DBDACA1B7C14D655A8A0B35EFEBA6AB481B6699' } + @{ Path = 'docs\images\console-verify-rollback-light.png'; Sha256 = '7F49D2181381CACB09E958EEEF26E03E20CFD8EA181D7C22C88C1563E21AC9F7' } + @{ Path = 'docs\images\console-verify-scope-light.png'; Sha256 = '3FDB64BF2C88C14B57B367F2C55967170DFE2D629AF7D787519E6A65895D6DCA' } + @{ Path = 'docs\images\guide-dictionary-light.png'; Sha256 = '77B93C7E301FFD6D4903C0E18DB664D9362FDF411B4E972FF5448FE32AD630C5' } + @{ Path = 'docs\images\readme-banner-dark.png'; Sha256 = '6AC3145E0FF966CCDC01292CB92BE7D47934B0CB7B3443189ED89800BC8748B6' } + @{ Path = 'docs\images\readme-banner-light.png'; Sha256 = '461057FE7BC300812BD548C59633BA01CBE6BE471FC75A98D6875E6FD2372620' } + @{ Path = 'docs\images\readme-flows-dark.png'; Sha256 = '5506575A6FA0729673A8C4FB5C1852D39E449B49104706C563E752DAE21D2EA4' } + @{ Path = 'docs\images\readme-flows-light.png'; Sha256 = '169597ED1DB78B467B727C762D2E5022CFC67C355FED405B529F49C9CCC7C081' } + @{ Path = 'docs\images\readme-how-dark.png'; Sha256 = 'D294589619F38AE783DE83F64E84F27475367D17F1C1CEE4FDD08E80F5D7E807' } + @{ Path = 'docs\images\readme-how-light.png'; Sha256 = 'F2ACEBE174157C856D74AB75831A1EBFEE6D20547374D5F62CFD6F015A510513' } + @{ Path = 'docs\images\readme-path-dark.png'; Sha256 = 'F567952C19F15EE15602183FECE9A61DBEEDDE8812E2F7A152970D13B6E5A8CF' } + @{ Path = 'docs\images\readme-path-light.png'; Sha256 = 'D6829BEDC7426BFB56F40AB8976EB39B5085D3BBA8C2039EC8A7C15791FFC260' } + @{ Path = 'docs\images\readme-permissions-dark.png'; Sha256 = '9FEE6B3B63435A37DDFAEFE673F0299360200C22CF24E95E07A01A0EE218A9E4' } + @{ Path = 'docs\images\readme-permissions-light.png'; Sha256 = 'DF543C03F4D8B24512177B33C48581B3E44ED7AC94B6EC7865FF72E50C995F1D' } + @{ Path = 'docs\images\readme-principles-dark.png'; Sha256 = '3E6FF101524AF880C384F84B5DE431090481720995F199AF3977200CF8579A7E' } + @{ Path = 'docs\images\readme-principles-light.png'; Sha256 = '4970A77A2D963DAE186DF073BB0C02A22F18C681F95B9FCB579E8F5CD05AB8EB' } + @{ Path = 'docs\images\readme-rights-dark.png'; Sha256 = '014D627D728DC80226E14CD5CF70517B3C76E436B003A0F08CFB68524E224193' } + @{ Path = 'docs\images\readme-rights-light.png'; Sha256 = '7ADC50A94328BB7878DAE8A92EE2861566947BC2A30A076040DF00C8499B0302' } + @{ Path = 'docs\images\readme-transfer-dark.png'; Sha256 = '48EF7AB4A62BCFF08EFE7B13D2AB99DAA0BC4F36F59847764BC97DB9097D7705' } + @{ Path = 'docs\images\readme-transfer-light.png'; Sha256 = '850E97145B6FD9C363A36CA9BDD6A2582A0FFFBEE2726300830DD649FADED448' } + @{ Path = 'docs\images\readme-why-dark.png'; Sha256 = 'A22E81936573F37500D99D54040269F39EC0BDF99E997F350FE3BA68CFE5E997' } + @{ Path = 'docs\images\readme-why-light.png'; Sha256 = '91C0E1F0AE64D464B08175F2D2CE91582023ABEA42B24049D49F231AE54A9097' } + @{ Path = 'docs\images\report-global-light.png'; Sha256 = '6D15E55A6A1C2805EB732F0AF99D8E527E783F5187BE4CF070071F494BC40498' } + @{ Path = 'docs\images\report-global-recover-light.png'; Sha256 = 'B17E6B7F06B438C2D22F43D0B1542341253AD2DA6586F2E51442ABD458BFD7E8' } + @{ Path = 'docs\images\report-phase-light.png'; Sha256 = '4F62AAFF87FC0C7E7DFF38032F8FDC4BBA6A6FC0373611A01C54AD8603D4CA93' } + @{ Path = 'docs\images\report-phase-warning-light.png'; Sha256 = 'DA0622931FC47CACC1388E378D569BB7D64B1FCE1279EDDD0F95ECCB9DEC41A1' } + @{ Path = 'CHANGELOG.md'; Sha256 = 'A85FC54AE96BF4DC423581F59B00735B9A948E39C603318D7181C6A29E59E703' } ) } # SIG # Begin signature block -# MIIghgYJKoZIhvcNAQcCoIIgdzCCIHMCAQExDzANBglghkgBZQMEAgEFADB5Bgor +# MIImKgYJKoZIhvcNAQcCoIImGzCCJhcCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCggMArwdUumYbf -# 3/gy4rsyWK0F/RbUcwU+SZwktVZpGaCCDW8wggZyMIIEWqADAgECAghkM1HTxzif +# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCD6LjzgtcmPZXqC +# uRnLeQTVeeu7rXxT1EAPYNJXXl2tP6CCDW8wggZyMIIEWqADAgECAghkM1HTxzif # CDANBgkqhkiG9w0BAQsFADB8MQswCQYDVQQGEwJVUzEOMAwGA1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cgLMwmoBRUGa3x1R+90rRm # SIG # End signature block diff --git a/package/PraRemoteMailbox.psd1 b/package/PraRemoteMailbox.psd1 new file mode 100644 index 0000000..d8d6dd1 --- /dev/null +++ b/package/PraRemoteMailbox.psd1 @@ -0,0 +1,252 @@ +# +# PRA Remote Mailbox - module manifest +# -------------------------------------------------------------------------- +# Author : Nicolas Fabert +# Version : see ModuleVersion (single source: Get-PraToolVersion of PRA.Common; a test checks both and the CHANGELOG) +# +# Imported by Invoke-PraRemoteMailbox.ps1, by the window (PRA.Gui) and by the direct GUI helper +# (module\PRA.Gui.Directory.ps1) with: Import-Module \PraRemoteMailbox.psd1 -Force +# +# What the root module (PraRemoteMailbox.psm1) loads: PRA.Common and PRA.Directory (which loads PRA.Backup). The other +# parts keep their on-demand import, on purpose: +# - module\PRA.Cloud.psm1 is imported only when the cloud phase needs it (in the dedicated process the Microsoft Graph +# modules load before ExchangeOnlineManagement, which avoids assembly conflicts); +# - module\PRA.Gui.psm1 is imported only for -Gui. +# A manifest cannot express a conditional load order, so those two are not NestedModules. +# +# FunctionsToExport is the list of the functions that the entry script, the window, the GUI helper, PRA.Cloud, PRA.Backup +# and PRA.Directory call across module boundaries (a test recomputes it from the code). The other functions stay internal. +# +@{ + RootModule = 'PraRemoteMailbox.psm1' + ModuleVersion = '3.0.0' + GUID = '1d97585b-d077-4d74-bf10-4e36d16308b6' + Author = 'Nicolas Fabert' + Description = 'PRA Remote Mailbox: disaster-recovery tool for an Exchange hybrid environment. Converts on-premises mailboxes to remote mailboxes and back (Active Directory and Exchange Online), with a backup before every write, a proof after it, a guided console and a transfer package between the Active Directory server and the cloud server.' + PowerShellVersion = '7.5' + CompatiblePSEditions = @('Core') + + # Functions called by Invoke-PraRemoteMailbox.ps1, the window and the other modules. The other functions stay internal. + FunctionsToExport = @( + # Console, log, audit and run result (PRA.Common) + 'Write-PraBanner', 'Write-PraStep', 'Write-PraItem', 'Write-PraHost', 'Write-PraLog', 'Write-PraEvent', 'Write-PraProgress', 'Initialize-PraAudit', 'Complete-PraRun', + # Configuration, paths and CSV (PRA.Common) + 'Import-PraConfiguration', 'New-PraEffectiveConfiguration', 'Get-PraConfigurationDifference', 'Resolve-PraPath', 'Read-PraCsvText', 'Read-PraTargetCsv', 'Get-PraTargetOverride', 'Get-PraToolVersion', 'Get-PraValue', 'Get-PraList', + # Ordinal helpers, JSON and native calls (PRA.Common) + 'Test-PraOrdinalEqual', 'Test-PraOrdinalIgnoreCaseEqual', 'Test-PraOrdinalIn', 'Test-PraOrdinalIgnoreCaseIn', 'Sort-PraOrdinal', 'Get-PraOrdinalUnique', 'ConvertFrom-PraJson', 'Get-PraNativeProcessApi', 'Get-PraWin32ErrorText', + # Private folders, phase data and transfer package (PRA.Common) + 'New-PraPrivateDirectorySecurity', 'Initialize-PraPrivateFolder', 'Register-PraObjectName', 'Register-PraObjectBackup', 'Save-PraPhaseData', 'Copy-PraPhaseData', 'Get-PraTransferPackageName', 'Get-PraTransferPackage', 'New-PraTransferPackage', 'Import-PraTransferPackage', + # Active Directory, backup and proof (PRA.Directory) + 'Initialize-PraDirectory', 'Initialize-PraPermissionCache', 'Get-PraUser', 'Get-PraTarget', 'New-PraRow', 'New-PraPlan', 'Invoke-PraAdPreview', 'Invoke-PraAdBatch', 'Invoke-PraAdReplication', 'Invoke-PraSync', 'Import-PraBackup', 'Import-PraProof', 'Assert-PraReceipt', 'Assert-PraFollowupState', 'Get-PraHash', 'Write-PraImmutableFile', 'New-PraPrivateDirectory', 'Write-PraJournal' + ) + CmdletsToExport = @() + VariablesToExport = @() + AliasesToExport = @() +} + +# SIG # Begin signature block +# MIImKgYJKoZIhvcNAQcCoIImGzCCJhcCAQExDzANBglghkgBZQMEAgEFADB5Bgor +# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG +# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDmGgloN8U+nnRW +# NMUbUIKJg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SIEIAo7 +# ppdp37NHLZVUhv3zQxmoX+2I4dEzwCR676+L0yIQMIHIBgsqhkiG9w0BCRACLzGB +# uDCBtTCBsjCBrwQgV0/qF6r6XnxqK5sIyZixc15FCzhzykTmokygkw5j87AwgYow +# dqR0MHIxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91 +# c3RvbjERMA8GA1UECgwIU1NMIENvcnAxLjAsBgNVBAMMJVNTTC5jb20gVGltZXN0 +# YW1waW5nIElzc3VpbmcgUlNBIENBIDICEFRD+De9Wu4YAYRyuFzajuMwCgYIKoZI +# zj0EAwIERzBFAiEA7e5kiTDIC+ov52nUVFyUSndadKDxpgNphZxl/bTZsUQCIAn5 +# w8sL87b1wJjkkWKVvoNdxui9EaAMw2Vm57cCHABk +# SIG # End signature block diff --git a/package/PraRemoteMailbox.psm1 b/package/PraRemoteMailbox.psm1 new file mode 100644 index 0000000..69af962 --- /dev/null +++ b/package/PraRemoteMailbox.psm1 @@ -0,0 +1,256 @@ +<# +.SYNOPSIS + PRA Remote Mailbox - root module: loads the core parts of the tool. + +.DESCRIPTION + Root module of PraRemoteMailbox.psd1 (aligned with the other tools of the same author). It authenticates the package first, + then loads, in this order: + + 1. module\PRA.Common.psm1 console, log, configuration, audit, reports, transfer package, tool version + 2. module\PRA.Directory.psm1 Active Directory reads and writes, backup, proof (loads module\PRA.Backup.psm1, the capture codec) + + The functions that cross a module boundary are listed in the manifest (FunctionsToExport); the others stay internal. + + Two parts are NOT loaded here, on purpose, and keep their own import by the code that needs them: + - module\PRA.Cloud.psm1 only when the cloud phase starts (in the dedicated process the Microsoft Graph modules load + before ExchangeOnlineManagement, which avoids assembly conflicts); + - module\PRA.Gui.psm1 only for -Gui (it needs Windows Presentation Foundation and the window files). + +.NOTES + Author : Nicolas Fabert + Version : 3.0.0 + History : see CHANGELOG.md +#> +#Requires -Version 7.5 +Set-StrictMode -Version Latest +$ErrorActionPreference = 'Stop' +# >>> PRA package integrity bootstrap: identical in every runtime PowerShell file (checked by the tests). +# It authenticates module\Test-PackageIntegrity.ps1 before running it; there is no unsigned or bypass path. +& { + param([Parameter(Mandatory)][string]$PackageRoot) + $verifier = [IO.Path]::GetFullPath([IO.Path]::Combine($PackageRoot, 'module', 'Test-PackageIntegrity.ps1')) + $cursor = $verifier + while ($cursor) { + $item = Microsoft.PowerShell.Management\Get-Item -LiteralPath $cursor -Force -ErrorAction Stop + if ($item.Attributes -band [IO.FileAttributes]::ReparsePoint) { throw "Package integrity: reparse point: $cursor" } + $cursor = [IO.Path]::GetDirectoryName($cursor) + } + $signature = Microsoft.PowerShell.Security\Get-AuthenticodeSignature -LiteralPath $verifier -ErrorAction Stop + if (-not [string]::Equals([string]$signature.Status, 'Valid', [StringComparison]::Ordinal) -or $null -eq $signature.SignerCertificate -or + -not [string]::Equals([string]$signature.SignerCertificate.Thumbprint, '0F28E442889F17B5F4D251E8F96E7CC6E2C9C6D6', [StringComparison]::Ordinal) -or + $null -eq $signature.TimeStamperCertificate) { + throw 'Package integrity: verifier must have the trusted, timestamped owner signature.' + } + & $verifier -Root $PackageRoot +} $PSScriptRoot +# <<< PRA package integrity bootstrap + +Import-Module (Join-Path $PSScriptRoot 'module\PRA.Common.psm1') -Force -ErrorAction Stop +Import-Module (Join-Path $PSScriptRoot 'module\PRA.Directory.psm1') -Force -ErrorAction Stop + +# SIG # Begin signature block +# MIImKwYJKoZIhvcNAQcCoIImHDCCJhgCAQExDzANBglghkgBZQMEAgEFADB5Bgor +# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG +# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCfUHQ+R4v5jXyI +# kuNGcG7hIQND0lLG4BM+Madgo3u7KKCCDW8wggZyMIIEWqADAgECAghkM1HTxzif +# CDANBgkqhkiG9w0BAQsFADB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4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yZixc15FCzhzykTmokygkw5j87AwgYow +# dqR0MHIxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91 +# c3RvbjERMA8GA1UECgwIU1NMIENvcnAxLjAsBgNVBAMMJVNTTC5jb20gVGltZXN0 +# YW1waW5nIElzc3VpbmcgUlNBIENBIDICEFRD+De9Wu4YAYRyuFzajuMwCgYIKoZI +# zj0EAwIESDBGAiEA53sA8PaESN+k1aH6yJlGCDUVCiiEvaxAy2BVS2idMlgCIQCm +# q5E1OXWvrFtf1dKaXoP1nRIxocuqAFjs1ZWqlmUGtg== +# SIG # End signature block diff --git a/package/README.md b/package/README.md index e2fabe6..aaf6a6d 100644 --- a/package/README.md +++ b/package/README.md @@ -1,8 +1,8 @@ # PRA Remote Mailbox -When the on-premises Exchange servers are lost, gives every user a mailbox in Exchange Online and rolls everything back when Exchange is available again. Windows PowerShell 5.1 engine, optional WPF window. Author: Nicolas Fabert. Version 2.2.0. +When the on-premises Exchange servers are lost, gives every user a mailbox in Exchange Online and rolls everything back when Exchange is available again. PowerShell 7.5+ engine, optional WPF window. Author: Nicolas Fabert. Version 3.0.0. -This folder contains everything needed to run the tool: `Invoke-PraRemoteMailbox.ps1`, its modules and WPF window, the configuration and CSV samples, the report template and the administrator guide. Tests and build tools stay outside it, in the repository. +This folder contains everything needed to run the tool: `Invoke-PraRemoteMailbox.ps1`, its modules and WPF window, the configuration and CSV samples, the report template and the two guides (user guide and reference guide). Tests and build tools stay outside it, in the repository. > [!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: @@ -17,9 +17,9 @@ This folder contains everything needed to run the tool: `Invoke-PraRemoteMailbox ## Requirements -- Windows PowerShell 5.1 for the operations; PowerShell 7.5+ only for the native Fluent window (operations still run in Windows PowerShell 5.1). -- RSAT `ActiveDirectory`, `ExchangeOnlineManagement` 3.10 or later, `Microsoft.Graph.Authentication` and `Microsoft.Graph.Users`. -- A hybrid Exchange organisation synchronised by Entra Connect, and the permissions listed in the administrator guide, chapter 4. +- PowerShell 7.5 or later (`pwsh.exe`) for the operations and the window. Windows PowerShell 5.1 is refused; the 2.2.x releases are the Windows PowerShell 5.1 version. Backups written by 2.x restore unchanged. +- RSAT `ActiveDirectory`, `ExchangeOnlineManagement` 3.10 or later, `Microsoft.Graph.Authentication` and `Microsoft.Graph.Users`, installed for PowerShell 7. +- A hybrid Exchange organisation synchronised by Entra Connect, and the minimum permissions listed in the reference guide, chapter 4 (derived from the code; the plain version is in the user guide, chapter 2). - Windows Terminal for emoji and colours. - To read the HTML report: a current desktop Microsoft Edge or Google Chrome (the report is compressed and needs `DecompressionStream`; the CSV with the same name works everywhere). @@ -39,7 +39,7 @@ Keep the `Backups` folder on a durable, protected volume: the backups are the on ## Package integrity -The tool runs only from a package signed by its owner. `module\Test-PackageIntegrity.ps1` and `PackageIntegrity.psd1` must carry a valid, timestamped signature of `0F28E442889F17B5F4D251E8F96E7CC6E2C9C6D6`; every PowerShell file must be signed by the same owner; every stable file (modules, XAML, template, sample CSV files, README, licence, guide, images) must match the signed manifest. The entry script, each module and the GUI helper check this first. A changed, missing, duplicated, unexpected or reparse-point file stops the tool before any import, window or operation. There is no unsigned mode, switch or environment bypass; do not disable your execution policy or this check to clear an error. +The tool runs only from a package signed by its owner. `module\Test-PackageIntegrity.ps1` and `PackageIntegrity.psd1` must carry a valid, timestamped signature of `0F28E442889F17B5F4D251E8F96E7CC6E2C9C6D6`; every PowerShell file must be signed by the same owner; every stable file (modules, XAML, template, sample CSV files, README, licence, change log, guide, images) must match the signed manifest. The entry script, each module and the GUI helper check this first. A changed, missing, duplicated, unexpected or reparse-point file stops the tool before any import, window or operation. There is no unsigned mode, switch or environment bypass; do not disable your execution policy or this check to clear an error. Edit only `config\PraRemoteMailbox.config.psd1` and your own CSV lists in `config\`: they are data, outside the check, like the generated `Backups`, `logs` and `reports` folders. A signature detects a change; it does not stop the file system from being written. @@ -53,7 +53,8 @@ Output folders: `Storage.BackupFolder`, `Logging.Folder` and `Report.Folder` mus | `module\` | Modules, WPF window (`PRA.Gui.xaml`), direct GUI helper and the integrity verifier. | | `config\` | Configuration to fill in and the two CSV samples. | | `templates\` | HTML report template. | -| `docs\` | Administrator guide, Markdown and self-contained HTML, with images. | +| `docs\` | User guide and reference guide, Markdown and self-contained HTML, with images. | +| `PraRemoteMailbox.psd1`, `PraRemoteMailbox.psm1` | Module manifest and root module (loaded by the script). | | `PackageIntegrity.psd1` | Owner-signed manifest of the stable files. | | `README.md` | This package readme. | | `LICENSE` | MIT license. | @@ -61,7 +62,8 @@ Output folders: `Storage.BackupFolder`, `Logging.Folder` and `Report.Folder` mus ## Documentation -- [Administrator guide](docs/PraRemoteMailbox-Guide.md) - also `docs/PraRemoteMailbox-Guide.html`, a single file to open locally +- [User guide](docs/PraRemoteMailbox-UserGuide.md) - the guided path in plain words, one picture per step; also `docs/PraRemoteMailbox-UserGuide.html`, a single file to open locally +- [Reference guide](docs/PraRemoteMailbox-Guide.md) - everything else, including the exact minimum permissions; also `docs/PraRemoteMailbox-Guide.html` Project page, releases and change log: https://github.com/Nico77600/PraRemoteMailbox diff --git a/package/config/PraRemoteMailbox.config.psd1 b/package/config/PraRemoteMailbox.config.psd1 index 1a08fdc..f7a9689 100644 --- a/package/config/PraRemoteMailbox.config.psd1 +++ b/package/config/PraRemoteMailbox.config.psd1 @@ -2,7 +2,7 @@ # PRA Remote Mailbox - configuration file # -------------------------------------------------------------------------- # Author : Nicolas Fabert -# Version : 2.2.0 +# Version : 3.0.0 # # This file is read by Invoke-PraRemoteMailbox.ps1. It is a PowerShell data # file: text between quotes, $true / $false, numbers, and @( ) for lists. @@ -100,6 +100,22 @@ DeferOnPremRestore = $false } + # --------------------------------------------------------------------- + # Optional forced Active Directory replication, before the Entra Connect synchronisation. + # ForceReplication = $true : each object changed in the run is pushed from the domain controller that was written to the other + # writable domain controllers (Sync-ADObject), then read back there. A domain controller that does not confirm + # is a warning that names it (the synchronisation still runs). Needs the right to replicate a single object + # (normally Domain Admins). OFF by default; -ForceAdReplication or the checkbox of the window turn it on for one run. + # ReplicationTargets : optional list of domain controllers to restrict it to (for example the ones the Entra Connect connector reads); + # empty = every other writable domain controller of the domain. + # --------------------------------------------------------------------- + Directory = @{ + ForceReplication = $false + ReplicationTargets = @() + ReplicationVerifyAttempts = 6 + ReplicationVerifyDelaySeconds = 10 + } + # --------------------------------------------------------------------- # Entra Connect synchronisation after the AD changes (Apply). # Sync = $true : one cycle is run and the tool waits for its end before the cloud part. @@ -137,7 +153,7 @@ Exo = @{ MinModuleVersion = '3.10.0' # older = child process isolation (certificate sign-in only) UseSubprocess = $false # $true = every Exchange Online call in a child PowerShell - DisableWAM = $true # interactive sign-in in the browser instead of the Windows broker + DisableWAM = $false # $false (default) = interactive sign-in through the Windows broker (WAM); $true = browser sign-in instead GrantVerifyAttempts = 13 # re-reads after ONE grant (never retried) GrantVerifyDelaySeconds = 10 } diff --git a/package/docs/PraRemoteMailbox-Guide.html b/package/docs/PraRemoteMailbox-Guide.html index abfe4c7..d498acb 100644 --- a/package/docs/PraRemoteMailbox-Guide.html +++ b/package/docs/PraRemoteMailbox-Guide.html @@ -77,6 +77,8 @@ .section h2 { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 0; line-height: 1.2; } .section-body > :first-child { margin-top: 16px; } h3 { font-size: 17.5px; font-weight: 650; margin: 36px 0 12px; padding-left: 12px; border-left: 3px solid var(--cp-accent); line-height: 1.3; } +h3.step-h { display: flex; align-items: center; gap: 12px; padding-left: 0; border-left: 0; margin-top: 32px; } +h3.step-h .path-num { width: 32px; height: 32px; font-size: 14.5px; } p { margin: 12px 0; } ul, ol { padding-left: 22px; } li { margin: 6px 0; } li::marker { color: var(--cp-accent); } strong { font-weight: 650; } code { font-family: Consolas, "Courier New", Courier, monospace; font-size: 0.88em; background: var(--cp-surface-soft); border: 1px solid var(--cp-border); padding: 1px 6px; border-radius: 6px; } @@ -133,6 +135,33 @@ .flow-arrow svg { width: 44px; height: 14px; color: var(--cp-accent); } .flow-label { font-size: 12px; font-weight: 700; color: var(--cp-accent); } .flow-sub { font-size: 11px; color: var(--cp-text-muted); text-align: center; max-width: 110px; line-height: 1.3; } +/* Path (guided path: trunk, then branches) */ +.path { margin: 20px 0 26px; padding: 20px 22px 22px; border-radius: 16px; background: var(--cp-surface-soft); border: 1px dashed var(--cp-border-strong); } +.path-caption { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cp-accent); } +.path-row { display: flex; align-items: stretch; } +.path-node { flex: 1 1 0; min-width: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--cp-surface); border: 1px solid var(--cp-border); } +.path-arrow { flex: 0 0 18px; display: grid; place-items: center; color: var(--cp-accent); } +.path-arrow svg { width: 10px; height: 34px; } +.path-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; line-height: 1; background: var(--cp-accent); color: var(--cp-accent-fg); box-shadow: 0 0 0 3px var(--cp-accent-soft); } +.path-title { font-weight: 700; font-size: 13.5px; line-height: 1.3; padding-top: 3px; } +.path-sub { font-size: 12.5px; line-height: 1.4; color: var(--cp-text-muted); margin-top: 3px; } +.path-sub code { font-size: 0.92em; padding: 0 4px; } +.path-fork { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; color: var(--cp-accent); } +.path-fork > div { display: grid; place-items: center; height: 34px; } +.path-fork svg { width: 14px; height: 26px; } +.path-branches { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; } +.path-branch { border: 1px solid var(--cp-border); border-top: 3px solid var(--cp-accent); border-radius: 14px; background: var(--cp-surface); padding: 14px 16px 6px; } +.path-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; margin: 0 0 12px; } +.path-letter { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; background: var(--cp-text); color: var(--cp-surface); } +.path-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--cp-accent-soft); color: var(--cp-accent); } +.path-steps { list-style: none; padding: 0; margin: 0; } +.path-steps li { position: relative; display: flex; gap: 12px; margin: 0; padding: 0 0 12px; } +.path-steps li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--cp-border); } +@media (max-width: 900px) { .path-row { flex-direction: column; } .path-arrow { transform: rotate(90deg); height: 18px; } .path-branches, .path-fork { grid-auto-flow: row; } } + +/* Task lists */ +ul.contains-task-list { list-style: none; padding-left: 4px; } .task-list-item input { width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px; accent-color: var(--cp-accent); } + /* Figures */ figure { margin: 18px 0 24px; } figure img { display: block; max-width: 100%; border: 1px solid var(--cp-border); border-radius: 12px; box-shadow: 0 0 2px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14); cursor: zoom-in; } @@ -155,9 +184,12 @@ main { padding: 0; max-width: none; } .section { break-inside: avoid-page; box-shadow: none; } .part { break-before: page; } } -