From ec753e831a8f4afaaea1c9141e18f6d255379b65 Mon Sep 17 00:00:00 2001
From: Nicolas Fabert <195452170+Nico77600@users.noreply.github.com>
Date: Mon, 9 Nov 2026 19:45:49 +0100
Subject: [PATCH 1/9] Rename Sort-PraOrdinal to Get-PraOrdinalSorted (approved
verb, no more 'unapproved verbs' warnings when the modules are imported),
with a regression test on every exported verb and on a silent import
---
package/PraRemoteMailbox.psd1 | 2 +-
package/docs/PraRemoteMailbox-Guide.md | 2 +-
package/module/PRA.Common.psm1 | 14 ++++++------
package/module/PRA.Directory.psm1 | 14 ++++++------
tests/PackageIntegrity.Tests.ps1 | 27 +++++++++++++++++++++++
tests/PraRemoteMailbox.Tests.ps1 | 30 +++++++++++++-------------
6 files changed, 58 insertions(+), 31 deletions(-)
diff --git a/package/PraRemoteMailbox.psd1 b/package/PraRemoteMailbox.psd1
index a606c68..96fb692 100644
--- a/package/PraRemoteMailbox.psd1
+++ b/package/PraRemoteMailbox.psd1
@@ -33,7 +33,7 @@
# 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', 'Compare-PraX500Address', 'ConvertFrom-PraJson', 'Get-PraNativeProcessApi', 'Get-PraWin32ErrorText',
+ 'Test-PraOrdinalEqual', 'Test-PraOrdinalIgnoreCaseEqual', 'Test-PraOrdinalIn', 'Test-PraOrdinalIgnoreCaseIn', 'Get-PraOrdinalSorted', 'Get-PraOrdinalUnique', 'Compare-PraX500Address', '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)
diff --git a/package/docs/PraRemoteMailbox-Guide.md b/package/docs/PraRemoteMailbox-Guide.md
index 6bc6bf6..f6cae60 100644
--- a/package/docs/PraRemoteMailbox-Guide.md
+++ b/package/docs/PraRemoteMailbox-Guide.md
@@ -1017,7 +1017,7 @@ Texts and icons: `PRA.Common.psm1`, region 1-2. The HTML report: `templates\Repo
| Pitfall | Rule |
|---|---|
| The Windows PowerShell 5.1 transcript (2.x) wrote every `Write-Host -NoNewline` piece on its own line (kept as a rule: the transcript stays readable in every host) | one `Write-Host` per line, one colour per line (`Write-PraHost`) |
-| PowerShell 7 on .NET (ICU) compares strings with the culture collation, which ignores zero-weight characters: `-eq`, `-ceq`, `-ne`, `-cne`, `-in`, `-cin`, `-contains`, `-like`, `switch`, `Group-Object`, `Select-Object -Unique`, `Sort-Object`, `.StartsWith(string)`, `.EndsWith(string)`, `.IndexOf(string)` and hash tables built on a culture comparer treat `"a"` and `"a"` as equal. Regular expressions, `.Contains(string)`, `[string]::Equals` and the default `Dictionary` / `HashSet` are ordinal. | for a hash, an identity, a name or a mode: `Test-PraOrdinalEqual`, `Test-PraOrdinalIgnoreCaseEqual`, `Test-PraOrdinalIn`, `Sort-PraOrdinal`, `Get-PraOrdinalUnique` (`PRA.Common`) or an explicit `[StringComparison]::Ordinal` / `OrdinalIgnoreCase`; never `-ceq`, `-cne`, `-cin`, `-cnotin` (a test refuses them in the runtime files) |
+| PowerShell 7 on .NET (ICU) compares strings with the culture collation, which ignores zero-weight characters: `-eq`, `-ceq`, `-ne`, `-cne`, `-in`, `-cin`, `-contains`, `-like`, `switch`, `Group-Object`, `Select-Object -Unique`, `Sort-Object`, `.StartsWith(string)`, `.EndsWith(string)`, `.IndexOf(string)` and hash tables built on a culture comparer treat `"a"` and `"a"` as equal. Regular expressions, `.Contains(string)`, `[string]::Equals` and the default `Dictionary` / `HashSet` are ordinal. | for a hash, an identity, a name or a mode: `Test-PraOrdinalEqual`, `Test-PraOrdinalIgnoreCaseEqual`, `Test-PraOrdinalIn`, `Get-PraOrdinalSorted`, `Get-PraOrdinalUnique` (`PRA.Common`) or an explicit `[StringComparison]::Ordinal` / `OrdinalIgnoreCase`; never `-ceq`, `-cne`, `-cin`, `-cnotin` (a test refuses them in the runtime files) |
| `GetNewClosure()` copies the variables of the current scope, including parameters with validation attributes (an empty `[ValidateSet]` parameter throws) | create closures inside a small function (`New-PraApprovalCallback`) |
| `ShouldProcess` reads `$ConfirmPreference` of the calling scope | the approval closure sets it from `$context.ConfirmPreference` |
| App-only Exchange Online sessions report the organisation domain as `TenantID` | the session guard accepts `Cloud.Organization` + `AppId` |
diff --git a/package/module/PRA.Common.psm1 b/package/module/PRA.Common.psm1
index b733cb8..db4a777 100644
--- a/package/module/PRA.Common.psm1
+++ b/package/module/PRA.Common.psm1
@@ -131,7 +131,7 @@ function Test-PraOrdinalIgnoreCaseIn {
return (Test-PraOrdinalIn -Value $Value -Set $Set -IgnoreCase)
}
-function Sort-PraOrdinal {
+function Get-PraOrdinalSorted {
<#
.SYNOPSIS
Sorts strings (or objects by one string property) by UTF-16 code unit: the culture-free, reproducible order that canonical forms
@@ -1874,7 +1874,7 @@ function Invoke-PraTransferPackage {
}
if ($expected.Count -ne $files.Count) { throw 'Transfer package: an entry listed in transfer.json is missing from the package.' }
$prefix = $script:PraTransferKinds[$kind].Prefix
- $folders = @($files | ForEach-Object { ([string]$_.FullName).Split('/')[0] } | Get-PraOrdinalUnique | Sort-PraOrdinal)
+ $folders = @($files | ForEach-Object { ([string]$_.FullName).Split('/')[0] } | Get-PraOrdinalUnique | Get-PraOrdinalSorted)
foreach ($folder in $folders) { if (-not $folder.StartsWith($prefix, [StringComparison]::Ordinal)) { throw ("Transfer package: a {0} package holds {1}* folders only." -f $kind, $prefix) } }
if (-not (Test-PraOrdinalIn ($prefix + $batchId) $folders -IgnoreCase)) { throw 'Transfer package: the folder of the batch named in transfer.json is not in the package.' }
# Content: hash of every entry, from the stream, with a hard bound on the bytes actually produced. Nothing is written yet.
@@ -2063,7 +2063,7 @@ function New-PraTransferPackage {
}
if (-not $items.Count) { throw 'Transfer package: the folders hold no file.' }
if ($items.Count -gt $limits.MaxEntries) { throw 'Transfer package: too many files.' }
- $ordered = @($items | Sort-PraOrdinal -Property Name)
+ $ordered = @($items | Get-PraOrdinalSorted -Property Name)
$names = New-Object 'Collections.Generic.HashSet[string]' -ArgumentList ([StringComparer]::OrdinalIgnoreCase)
foreach ($item in $ordered) { if (-not $names.Add($item.Name)) { throw ("Transfer package: duplicate file name '{0}'." -f $item.Name) } }
$manifest = [ordered]@{
@@ -2129,7 +2129,7 @@ function ConvertTo-PraDataLiteral {
return "'" + $escaped + "'"
}
if ($Value -is [Collections.IDictionary]) {
- $keys = @($Value.Keys | ForEach-Object { [string]$_ } | Sort-PraOrdinal)
+ $keys = @($Value.Keys | ForEach-Object { [string]$_ } | Get-PraOrdinalSorted)
if (-not $keys.Count) { return '@{}' }
$lines = foreach ($key in $keys) {
if ($key -notmatch '\A[A-Za-z][A-Za-z0-9_]{0,63}\z') { throw "Configuration key '$key' is not valid." }
@@ -2148,7 +2148,7 @@ function ConvertTo-PraDataLiteral {
function Get-PraConfigurationFlat {
<# Dotted key -> text, for every leaf of a configuration (lists are joined with ', '); '_Path' is not a setting. #>
param([Parameter(Mandatory)][Collections.IDictionary]$Configuration, [string]$Prefix = '')
- foreach ($key in @($Configuration.Keys | ForEach-Object { [string]$_ } | Sort-PraOrdinal)) {
+ foreach ($key in @($Configuration.Keys | ForEach-Object { [string]$_ } | Get-PraOrdinalSorted)) {
if ($key.StartsWith('_', [StringComparison]::Ordinal)) { continue }
$value = $Configuration[$key]
if ($value -is [Collections.IDictionary]) { Get-PraConfigurationFlat -Configuration $value -Prefix ($Prefix + $key + '.') }
@@ -2175,7 +2175,7 @@ function Get-PraConfigurationDifference {
function Get-PraOverrideKey {
<# Dotted names of the leaves of an overrides table. #>
param([Collections.IDictionary]$Overrides, [string]$Prefix = '')
- foreach ($key in @($Overrides.Keys | ForEach-Object { [string]$_ } | Sort-PraOrdinal)) {
+ foreach ($key in @($Overrides.Keys | ForEach-Object { [string]$_ } | Get-PraOrdinalSorted)) {
$value = $Overrides[$key]
if ($value -is [Collections.IDictionary]) { Get-PraOverrideKey -Overrides $value -Prefix ($Prefix + $key + '.') } else { $Prefix + $key }
}
@@ -2828,7 +2828,7 @@ function Write-PraGlobalReport {
}
#endregion
-Export-ModuleMember -Function Register-PraObjectName, Get-PraList, Register-PraObjectBackup, Save-PraPhaseData, Copy-PraPhaseData, Read-PraPhaseData, New-PraPhaseRecord, Get-PraGlobalModel, Write-PraGlobalReport, Write-PraGlobalReportHtml, Write-PraGlobalReportCsv, Test-PraGlobalReportWanted, Limit-PraText, Get-PraEventObjectName, Test-PraOrdinalEqual, Test-PraOrdinalIgnoreCaseEqual, Test-PraOrdinalIn, Test-PraOrdinalIgnoreCaseIn, Sort-PraOrdinal, Get-PraOrdinalUnique, Compare-PraX500Address, ConvertFrom-PraJson, Get-PraNativeProcessApi, Read-PraCsvText, Get-PraToolVersion, New-PraPrivateDirectorySecurity, Initialize-PraPrivateFolder, ConvertTo-PraCsvCell, Get-PraValue, Format-PraDuration, Add-PraIssue, Write-PraLog, Write-PraItem, Write-PraBanner, Write-PraStep,
+Export-ModuleMember -Function Register-PraObjectName, Get-PraList, Register-PraObjectBackup, Save-PraPhaseData, Copy-PraPhaseData, Read-PraPhaseData, New-PraPhaseRecord, Get-PraGlobalModel, Write-PraGlobalReport, Write-PraGlobalReportHtml, Write-PraGlobalReportCsv, Test-PraGlobalReportWanted, Limit-PraText, Get-PraEventObjectName, Test-PraOrdinalEqual, Test-PraOrdinalIgnoreCaseEqual, Test-PraOrdinalIn, Test-PraOrdinalIgnoreCaseIn, Get-PraOrdinalSorted, Get-PraOrdinalUnique, Compare-PraX500Address, ConvertFrom-PraJson, Get-PraNativeProcessApi, Read-PraCsvText, Get-PraToolVersion, New-PraPrivateDirectorySecurity, Initialize-PraPrivateFolder, ConvertTo-PraCsvCell, Get-PraValue, Format-PraDuration, Add-PraIssue, Write-PraLog, Write-PraItem, Write-PraBanner, Write-PraStep,
Write-PraSummary, Write-PraHost, Resolve-PraPath, Import-PraConfiguration, Initialize-PraAudit, Get-PraOutcome, Complete-PraRun, Write-PraEvent, Get-PraWin32ErrorText, Get-PraTargetOverride, Read-PraTargetCsv, Write-PraProgress, Get-PraTransferPackageName, Get-PraTransferPackage, Import-PraTransferPackage, New-PraTransferPackage, New-PraEffectiveConfiguration, Get-PraConfigurationDifference
# SIG # Begin signature block
diff --git a/package/module/PRA.Directory.psm1 b/package/module/PRA.Directory.psm1
index e3b827d..0403fdd 100644
--- a/package/module/PRA.Directory.psm1
+++ b/package/module/PRA.Directory.psm1
@@ -534,7 +534,7 @@ function Get-PraAttributeState {
if ($present) {
switch ($Kinds[$name]) {
String { $value = [string]$raw }
- MultiString { $value = [string[]]@($raw | Sort-PraOrdinal) }
+ MultiString { $value = [string[]]@($raw | Get-PraOrdinalSorted) }
Bytes { $value = [Convert]::ToBase64String([byte[]]$raw) }
Bool { $value = [bool]$raw }
Int { $value = ([int]$raw).ToString([Globalization.CultureInfo]::InvariantCulture) }
@@ -579,7 +579,7 @@ function Test-PraStateEqual {
if ([bool]$Left.Present -ne [bool]$Right.Present -or -not (Test-PraOrdinalEqual $Left.Kind $Right.Kind)) { return $false }
if (-not $Left.Present) { return $true }
if (Test-PraOrdinalEqual $Left.Kind 'MultiString') {
- $a = @($Left.Value | Sort-PraOrdinal); $b = @($Right.Value | Sort-PraOrdinal)
+ $a = @($Left.Value | Get-PraOrdinalSorted); $b = @($Right.Value | Get-PraOrdinalSorted)
if ($a.Count -ne $b.Count) { return $false }
for ($i = 0; $i -lt $a.Count; $i++) { if (-not (Test-PraOrdinalEqual ([string]$a[$i]) ([string]$b[$i]))) { return $false } }
return $true
@@ -816,7 +816,7 @@ function Get-PraX500Difference {
$added = New-Object 'Collections.Generic.List[string]'
foreach ($value in $nowX) { if (-not (Test-PraOrdinalIn $value $wasX -IgnoreCase) -and -not (Test-PraOrdinalIn $value $added.ToArray() -IgnoreCase)) { $added.Add([string]$value) } }
$removed = @($wasX | Where-Object { -not (Test-PraOrdinalIn $_ $nowX -IgnoreCase) })
- $a = @($now | Where-Object { -not (Test-PraX500Address $_) } | Sort-PraOrdinal); $b = @($was | Where-Object { -not (Test-PraX500Address $_) } | Sort-PraOrdinal)
+ $a = @($now | Where-Object { -not (Test-PraX500Address $_) } | Get-PraOrdinalSorted); $b = @($was | Where-Object { -not (Test-PraX500Address $_) } | Get-PraOrdinalSorted)
$same = ($a.Count -eq $b.Count)
if ($same) { for ($i = 0; $i -lt $a.Count; $i++) { if (-not (Test-PraOrdinalEqual ([string]$a[$i]) ([string]$b[$i]))) { $same = $false; break } } }
return [pscustomobject]@{ OtherEqual = $same; Added = [string[]]$added.ToArray(); Removed = [string[]]@($removed) }
@@ -859,7 +859,7 @@ function Get-PraPermissionCache {
<# Bounded cache (groups, trustees) shared by the shared mailboxes of one batch. #>
[CmdletBinding()]
param([hashtable]$Context)
- $policy = (@($Context.Config.SharedMailbox.ExcludeTrusteeSamAccountNames | Sort-PraOrdinal) -join "`n")
+ $policy = (@($Context.Config.SharedMailbox.ExcludeTrusteeSamAccountNames | Get-PraOrdinalSorted) -join "`n")
$cache = $null
if ($script:PermissionCaches.TryGetValue($Context, [ref]$cache)) {
if ((Test-PraOrdinalIgnoreCaseEqual $cache.Server $Context.Server) -and (Test-PraOrdinalEqual $cache.Policy $policy)) { return $cache }
@@ -927,7 +927,7 @@ function Expand-PraTrustee {
}
}
}
- $result = [string[]]@($upns | Sort-PraOrdinal -IgnoreCase)
+ $result = [string[]]@($upns | Get-PraOrdinalSorted -IgnoreCase)
# An enumeration error never reaches this point: a partial expansion is never cached.
Add-PraPermissionCache -Context $Context -Key $key -Upns $result
Write-PraLog -Context $Context -Message ("PERMISSIONS GROUP END | unique members=$($seen.Count) | unique UPN=$($result.Count)") -Level Debug
@@ -1079,7 +1079,7 @@ function Get-PraSharedPermission {
Write-PraMemoryStage -Context $Context -Stage 'PERMISSIONS CAPTURED' -Identity ([string]$User.ObjectGUID) -Detail ("FullAccess=$($full.Count) SendAs=$($send.Count) SendOnBehalf=$($behalf.Count)")
$ignored = @(@($unknownFullAccess | ForEach-Object { "FullAccess $_" }) + @($unknownSendAs | ForEach-Object { "SendAs $_" }))
if ($ignored.Count) { $Context['_PraIgnoredTrustees'][([guid]$User.ObjectGUID).ToString()] = [string[]]$ignored }
- return @{ FullAccess=@($full | Sort-PraOrdinal -IgnoreCase); SendAs=@($send | Sort-PraOrdinal -IgnoreCase); SendOnBehalf=@($behalf | Sort-PraOrdinal -IgnoreCase) }
+ return @{ FullAccess=@($full | Get-PraOrdinalSorted -IgnoreCase); SendAs=@($send | Get-PraOrdinalSorted -IgnoreCase); SendOnBehalf=@($behalf | Get-PraOrdinalSorted -IgnoreCase) }
}
#endregion
@@ -1200,7 +1200,7 @@ function New-PraPlan {
if ($x500.Added.Count) {
$originalValues = if ([bool]$originalProxies.Present) { @([string[]]@($originalProxies.Value)) } else { @() }
$keptX500 = @($x500.Added)
- $desired.proxyAddresses = @{ Present=$true; Kind='MultiString'; Value=[string[]]@(@($originalValues) + @($keptX500) | Sort-PraOrdinal) }
+ $desired.proxyAddresses = @{ Present=$true; Kind='MultiString'; Value=[string[]]@(@($originalValues) + @($keptX500) | Get-PraOrdinalSorted) }
}
$sourceGroup = Get-PraValue $SourceRecord 'Licensing' $null
if ($null -ne $sourceGroup -and $sourceGroup.Enabled) {
diff --git a/tests/PackageIntegrity.Tests.ps1 b/tests/PackageIntegrity.Tests.ps1
index 4054bf8..9287745 100644
--- a/tests/PackageIntegrity.Tests.ps1
+++ b/tests/PackageIntegrity.Tests.ps1
@@ -249,6 +249,33 @@ Describe 'Module manifest - PraRemoteMailbox.psd1 and its root module' {
foreach ($name in $script:ManifestData.FunctionsToExport) { $exported -ccontains $name | Should -BeTrue -Because $name }
[regex]::Match($result.Text, '(?m)^PARTS=(.*)$').Groups[1].Value.Trim() | Should -BeExactly 'PRA.Backup,PRA.Common,PRA.Directory'
}
+ It 'exports only approved verbs and prints no warning when the manifest and every module are imported (the console start shows none)' {
+ $paths = @("'$(Join-Path $script:Fixture 'PraRemoteMailbox.psd1')'") + @(Get-ChildItem -LiteralPath (Join-Path $script:Fixture 'module') -Filter '*.psm1' | Sort-Object Name | ForEach-Object { "'$($_.FullName)'" })
+ $command = @(
+ 'try {'
+ '$warned = New-Object ''Collections.Generic.List[string]'''
+ "foreach (`$path in @($($paths -join ','))) {"
+ '$module = Import-Module -Name $path -Force -PassThru -ErrorAction Stop -WarningVariable captured'
+ 'foreach ($item in @($captured)) { $warned.Add([string]$item) }'
+ 'foreach ($name in $module.ExportedCommands.Keys) { ''COMMAND='' + $module.Name + '':'' + $name }'
+ '}'
+ '''WARNINGS='' + $warned.Count'
+ '} catch { [Console]::Error.WriteLine($_.Exception.Message); exit 1 }'
+ ) -join "`n"
+ $result = Invoke-Pwsh -Arguments @('-Command', $command)
+ $result.Code | Should -Be 0 -Because $result.Text
+ [regex]::Match($result.Text, '(?m)^WARNINGS=(.*)$').Groups[1].Value.Trim() | Should -BeExactly '0' -Because $result.Text
+ $result.Text | Should -Not -Match '(?m)^WARNING:' -Because 'a warning text would be printed at the console start'
+ $verbs = New-Object 'Collections.Generic.HashSet[string]' -ArgumentList ([string[]]@(Get-Verb | ForEach-Object Verb)), ([StringComparer]::Ordinal)
+ $commands = @([regex]::Matches($result.Text, '(?m)^COMMAND=(?[^:]+):(?\S+)\s*$') | ForEach-Object { [pscustomobject]@{ Module = $_.Groups['Module'].Value; Name = $_.Groups['Name'].Value } })
+ $commands.Count | Should -BeGreaterThan 100
+ foreach ($module in 'PraRemoteMailbox', 'PRA.Common', 'PRA.Directory', 'PRA.Backup', 'PRA.Cloud', 'PRA.Gui') {
+ @($commands | Where-Object { $_.Module -ceq $module }).Count | Should -BeGreaterThan 0 -Because $module
+ }
+ foreach ($command in $commands) {
+ $verbs.Contains($command.Name.Split('-')[0]) | Should -BeTrue -Because "$($command.Name) (exported by $($command.Module)) must use a verb from Get-Verb"
+ }
+ }
It 'is refused by Windows PowerShell 5.1 with the minimum version in the message' {
$command = "try { Import-Module -Name '$(Join-Path $script:Fixture 'PraRemoteMailbox.psd1')' -Force -ErrorAction Stop; 'LOADED' } catch { [Console]::Error.WriteLine(`$_.Exception.Message); exit 1 }"
$output = & $script:Ps51 -NoLogo -NoProfile -NonInteractive -Command $command 2>&1 | ForEach-Object { [string]$_ }
diff --git a/tests/PraRemoteMailbox.Tests.ps1 b/tests/PraRemoteMailbox.Tests.ps1
index b375958..af824ab 100644
--- a/tests/PraRemoteMailbox.Tests.ps1
+++ b/tests/PraRemoteMailbox.Tests.ps1
@@ -4899,7 +4899,7 @@ Describe 'Release 3.0.0 - ordinal string comparison under .NET ICU (helpers and
}
}
It 'exports the ordinal helpers from PRA.Common' {
- foreach ($name in 'Test-PraOrdinalEqual','Test-PraOrdinalIgnoreCaseEqual','Test-PraOrdinalIn','Test-PraOrdinalIgnoreCaseIn','Sort-PraOrdinal','Get-PraOrdinalUnique') {
+ foreach ($name in 'Test-PraOrdinalEqual','Test-PraOrdinalIgnoreCaseEqual','Test-PraOrdinalIn','Test-PraOrdinalIgnoreCaseIn','Get-PraOrdinalSorted','Get-PraOrdinalUnique') {
(Get-Command $name -ErrorAction Stop).ModuleName | Should -BeExactly 'PRA.Common'
}
}
@@ -4918,7 +4918,7 @@ Describe 'Release 3.0.0 - ordinal string comparison under .NET ICU (helpers and
Test-PraOrdinalIgnoreCaseIn $plain @($other) | Should -BeFalse
@($plain, $other | Get-PraOrdinalUnique).Count | Should -Be 2
@($plain, $other | Get-PraOrdinalUnique -IgnoreCase).Count | Should -Be 2
- @($other, $plain | Sort-PraOrdinal -Unique).Count | Should -Be 2
+ @($other, $plain | Get-PraOrdinalSorted -Unique).Count | Should -Be 2
}
# The exact same text still matches (case rules unchanged).
Test-PraOrdinalEqual $tail ('abc' + $Char) | Should -BeTrue
@@ -4934,11 +4934,11 @@ Describe 'Release 3.0.0 - ordinal string comparison under .NET ICU (helpers and
Test-PraOrdinalIgnoreCaseEqual 7 '7' | Should -BeTrue
Test-PraOrdinalIn 'a' $null | Should -BeFalse
Test-PraOrdinalIn 'a' @() | Should -BeFalse
- (@('b','A','a','B') | Sort-PraOrdinal) -join ',' | Should -BeExactly 'A,B,a,b'
- (@('b','A','a','B') | Sort-PraOrdinal -Descending) -join ',' | Should -BeExactly 'b,a,B,A'
- (@('b','A','a','B') | Sort-PraOrdinal -IgnoreCase | ForEach-Object { $_.ToLowerInvariant() }) -join ',' | Should -BeExactly 'a,a,b,b'
- (@([pscustomobject]@{N='z'},[pscustomobject]@{N='Y'},[pscustomobject]@{N='a'}) | Sort-PraOrdinal -Property N | ForEach-Object N) -join ',' | Should -BeExactly 'Y,a,z'
- @() | Sort-PraOrdinal | Should -BeNullOrEmpty
+ (@('b','A','a','B') | Get-PraOrdinalSorted) -join ',' | Should -BeExactly 'A,B,a,b'
+ (@('b','A','a','B') | Get-PraOrdinalSorted -Descending) -join ',' | Should -BeExactly 'b,a,B,A'
+ (@('b','A','a','B') | Get-PraOrdinalSorted -IgnoreCase | ForEach-Object { $_.ToLowerInvariant() }) -join ',' | Should -BeExactly 'a,a,b,b'
+ (@([pscustomobject]@{N='z'},[pscustomobject]@{N='Y'},[pscustomobject]@{N='a'}) | Get-PraOrdinalSorted -Property N | ForEach-Object N) -join ',' | Should -BeExactly 'Y,a,z'
+ @() | Get-PraOrdinalSorted | Should -BeNullOrEmpty
(@('x','y','x','X') | Get-PraOrdinalUnique) -join ',' | Should -BeExactly 'x,y,X'
}
It 'Get-PraValue finds a key by ordinal, case-insensitive match only' {
@@ -5249,7 +5249,7 @@ Describe 'Release 3.0.0 - transfer package: verification, extraction and refusal
try {
$names = @($zip.Entries.FullName)
$names[0] | Should -BeExactly 'transfer.json'
- (@($names[1..($names.Count - 1)]) -join '|') | Should -BeExactly ((@($names[1..($names.Count - 1)]) | Sort-PraOrdinal) -join '|')
+ (@($names[1..($names.Count - 1)]) -join '|') | Should -BeExactly ((@($names[1..($names.Count - 1)]) | Get-PraOrdinalSorted) -join '|')
@($zip.Entries.LastWriteTime | ForEach-Object { $_.Year } | Get-PraOrdinalUnique) | Should -Be @('2000')
} finally { $zip.Dispose() }
$info = Get-PraTransferPackage -Path $made.Path -Environment LAB
@@ -5261,7 +5261,7 @@ Describe 'Release 3.0.0 - transfer package: verification, extraction and refusal
$info.EntryCount | Should -Be (3 * $Folders.Count)
$info.ToolVersion | Should -BeExactly '3.0.0'
$info.NextCommand | Should -Match '-Batch'
- @($info.Folders | Sort-PraOrdinal) -join '|' | Should -BeExactly ((@($Folders) | Sort-PraOrdinal) -join '|')
+ @($info.Folders | Get-PraOrdinalSorted) -join '|' | Should -BeExactly ((@($Folders) | Get-PraOrdinalSorted) -join '|')
$info.SizeBytes | Should -Be ((Get-Item -LiteralPath $made.Path).Length)
$imported = Import-PraTransferPackage -Path $made.Path -BackupFolder $w.Backups -Environment LAB
$imported.Kind | Should -BeExactly $Kind
@@ -5763,7 +5763,7 @@ Describe 'Release 3.0.0 - effective run configuration' -Tag 'EffectiveConfig' {
$made = New-PraEffectiveConfiguration -BasePath $runtime.ConfigPath -Root $global:PraGate.Package -Overrides @{ Environment = 'LAB_RUN'; DomainController = 'dc02.gate.invalid'; Cloud = @{ TenantId = '20000000-0000-0000-0000-000000000002'; Organization = 'gate.onmicrosoft.com' }; Scope = @{ IncludeShared = $true } } -Destination $dest
$made.Path | Should -BeExactly $dest
$made.Hash | Should -BeExactly (Get-FileHash -LiteralPath $dest).Hash.ToLowerInvariant()
- @($made.Keys | Sort-PraOrdinal) -join ',' | Should -BeExactly 'Cloud.Organization,Cloud.TenantId,DomainController,Environment,Scope.IncludeShared'
+ @($made.Keys | Get-PraOrdinalSorted) -join ',' | Should -BeExactly 'Cloud.Organization,Cloud.TenantId,DomainController,Environment,Scope.IncludeShared'
(Get-FileHash -LiteralPath $runtime.ConfigPath).Hash | Should -BeExactly $baseHash
$base = Import-PraConfiguration -Path $runtime.ConfigPath -Root $global:PraGate.Package
$effective = Import-PraConfiguration -Path $dest -Root $global:PraGate.Package
@@ -5772,7 +5772,7 @@ Describe 'Release 3.0.0 - effective run configuration' -Tag 'EffectiveConfig' {
$effective.Cloud.TenantId | Should -BeExactly '20000000-0000-0000-0000-000000000002'
$effective.Scope.IncludeShared | Should -BeTrue
$differences = @(Get-PraConfigurationDifference -Base $base -Effective $effective)
- @($differences.Key | Sort-PraOrdinal) -join ',' | Should -BeExactly 'Cloud.Organization,Cloud.TenantId,DomainController,Environment,Scope.IncludeShared'
+ @($differences.Key | Get-PraOrdinalSorted) -join ',' | Should -BeExactly 'Cloud.Organization,Cloud.TenantId,DomainController,Environment,Scope.IncludeShared'
($differences | Where-Object Key -eq 'Environment').Text | Should -BeExactly 'Environment: SYNTHETIC_GATE -> LAB_RUN'
# Everything that is not overridden is identical to the base (the difference lists exactly the overridden keys, asserted above).
[IO.File]::ReadAllText($dest) | Should -Match 'never edit - the base file is unchanged'
@@ -5782,8 +5782,8 @@ Describe 'Release 3.0.0 - effective run configuration' -Tag 'EffectiveConfig' {
$null = New-PraEffectiveConfiguration -BasePath $runtime.ConfigPath -Root $global:PraGate.Package -Overrides @{ Environment = 'LAB_RUN' } -Destination $dest
$acl = [IO.FileSystemAclExtensions]::GetAccessControl((New-Object IO.FileInfo $dest))
$acl.AreAccessRulesProtected | Should -BeTrue
- $sids = @($acl.GetAccessRules($true, $true, [Security.Principal.SecurityIdentifier]) | ForEach-Object { $_.IdentityReference.Value } | Get-PraOrdinalUnique -IgnoreCase | Sort-PraOrdinal)
- $expected = @([Security.Principal.WindowsIdentity]::GetCurrent().User.Value, 'S-1-5-18', 'S-1-5-32-544' | Get-PraOrdinalUnique -IgnoreCase | Sort-PraOrdinal)
+ $sids = @($acl.GetAccessRules($true, $true, [Security.Principal.SecurityIdentifier]) | ForEach-Object { $_.IdentityReference.Value } | Get-PraOrdinalUnique -IgnoreCase | Get-PraOrdinalSorted)
+ $expected = @([Security.Principal.WindowsIdentity]::GetCurrent().User.Value, 'S-1-5-18', 'S-1-5-32-544' | Get-PraOrdinalUnique -IgnoreCase | Get-PraOrdinalSorted)
$sids -join ',' | Should -BeExactly ($expected -join ',')
}
It 'refuses an unknown key, a wrong type, a section mismatch, an existing destination and an invalid value, leaving no file' {
@@ -5823,7 +5823,7 @@ Describe 'Release 3.0.0 - effective run configuration' -Tag 'EffectiveConfig' {
$run1.ExitCode | Should -Be 0 -Because ($run1.Output + $run1.Error)
$events = @(Get-Content -LiteralPath $env:PRA_EVENT_FILE -Encoding UTF8 | ForEach-Object { $_ | ConvertFrom-Json -DateKind String })
$result = @($events | Where-Object kind -eq 'result')[0]
- @($result.configOverrides | Sort-PraOrdinal) -join '|' | Should -BeExactly 'Cloud.Organization: (empty) -> gate.onmicrosoft.com|Polling.TimeoutMinutes: 60 -> 30'
+ @($result.configOverrides | Get-PraOrdinalSorted) -join '|' | Should -BeExactly 'Cloud.Organization: (empty) -> gate.onmicrosoft.com|Polling.TimeoutMinutes: 60 -> 30'
$texts = @($events | Where-Object { $_.kind -eq 'item' -and $_.text -like 'Run setting:*' })
$texts.Count | Should -Be 2
($texts | ForEach-Object status | Get-PraOrdinalUnique) | Should -BeExactly 'Info'
@@ -5846,7 +5846,7 @@ Describe 'Release 3.0.0 - native process binding: SetLastError on every import,
It 'returns the existing tables and the new STARTUPINFOEXW with the methods of a handle-list launch' {
$native = Get-PraNativeProcessApi
- (@($native.Keys) | Sort-PraOrdinal) -join ',' | Should -BeExactly 'Api,ProcessInformation,StartupInfo,StartupInfoEx'
+ (@($native.Keys) | Get-PraOrdinalSorted) -join ',' | Should -BeExactly 'Api,ProcessInformation,StartupInfo,StartupInfoEx'
foreach ($name in 'CreateProcessW', 'CreateProcessEx', 'InitializeProcThreadAttributeList', 'UpdateProcThreadAttribute', 'DeleteProcThreadAttributeList', 'GetExitCodeProcess', 'CloseHandle') {
$native.Api.GetMethod($name) | Should -Not -BeNullOrEmpty -Because $name
}
From 4434165fc7aef407b2bdabe04729961425e3ca00 Mon Sep 17 00:00:00 2001
From: Nicolas Fabert <195452170+Nico77600@users.noreply.github.com>
Date: Mon, 9 Nov 2026 19:45:51 +0100
Subject: [PATCH 2/9] 3.1.2: version bump, changelog, README download name,
banners show 3.1.2, draft integrity inventory, guides rebuilt
---
CHANGELOG.md | 5 ++++
README.md | 6 ++---
package/Invoke-PraRemoteMailbox.ps1 | 2 +-
package/PackageIntegrity.psd1 | 22 ++++++++++--------
package/PraRemoteMailbox.psd1 | 2 +-
package/PraRemoteMailbox.psm1 | 2 +-
package/README.md | 2 +-
package/config/PraRemoteMailbox.config.psd1 | 2 +-
package/docs/PraRemoteMailbox-Guide.html | 8 +++----
package/docs/PraRemoteMailbox-Guide.md | 4 ++--
package/docs/PraRemoteMailbox-UserGuide.html | 6 ++---
package/docs/PraRemoteMailbox-UserGuide.md | 2 +-
package/docs/images/readme-banner-dark.png | Bin 233551 -> 233469 bytes
package/docs/images/readme-banner-light.png | Bin 293420 -> 293382 bytes
package/module/PRA.Backup.psm1 | 2 +-
package/module/PRA.Cloud.psm1 | 2 +-
package/module/PRA.Common.psm1 | 6 ++---
package/module/PRA.Directory.psm1 | 2 +-
package/module/PRA.Gui.Directory.ps1 | 2 +-
package/module/PRA.Gui.psm1 | 2 +-
package/templates/Report.template.html | 2 +-
tests/IntegrityFixture.ps1 | 2 +-
tests/Invoke-TestGate.ps1 | 2 +-
tests/PackageIntegrity.Tests.ps1 | 4 ++--
tests/PraDocumentation.Tests.ps1 | 4 ++--
tests/PraRemoteMailbox.Tests.ps1 | 4 ++--
tests/PraReport.Tests.ps1 | 4 ++--
tools/Build-Documentation.ps1 | 2 +-
tools/DocumentationImages/New-PackageCopy.ps1 | 2 +-
.../Show-ConsoleScreens.ps1 | 2 +-
tools/DocumentationImages/StubEngine.ps1 | 2 +-
.../DocumentationImages/StubPackageCheck.ps1 | 2 +-
tools/New-DocumentationImages.ps1 | 2 +-
tools/New-PraPackage.ps1 | 4 ++--
34 files changed, 62 insertions(+), 55 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 62c864b..d190d67 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,11 @@ All notable changes of PRA Remote Mailbox. Author: Nicolas Fabert. Versions foll
a MAJOR version changes the command line or the configuration file, a MINOR version adds a feature,
a PATCH version fixes a defect. The backup formats have their own version (see the guide, annex D).
+## 3.1.2 — 2026-11-09
+
+### Fixed
+- The console no longer prints "unapproved verbs" warnings at start.
+
## 3.1.1 — 2026-11-09
Documentation only: no change to the tool itself.
diff --git a/README.md b/README.md
index 746a77e..d9eb924 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@
> [!TIP]
-> **Download the latest release.** Open the [latest release](https://github.com/Nico77600/PraRemoteMailbox/releases/latest) and download **`PraRemoteMailbox-3.1.1.zip`** under *Assets* (its SHA-256 is in the release notes). That ZIP is the signed tool, with the HTML guides. Do not use the **Source code** archives or the green **Code** button: they are a copy of the repository, not the release package.
+> **Download the latest release.** Open the [latest release](https://github.com/Nico77600/PraRemoteMailbox/releases/latest) and download **`PraRemoteMailbox-3.1.2.zip`** under *Assets* (its SHA-256 is in the release notes). That ZIP is the signed tool, with the HTML guides. Do not use the **Source code** archives or the green **Code** button: they are a copy of the repository, not the release package.
> [!IMPORTANT]
> Files downloaded from the Internet may be blocked by Windows and fail to run. Before using this project, unblock every file in the downloaded folder:
@@ -48,7 +48,7 @@ In a hybrid organisation, a mailbox hosted on-premises is only a *mail user* for
Done by hand, this means rewriting about ten Exchange attributes per object in Active Directory, for hundreds of objects, under stress — and keeping every original value to come back later: a wrong or lost value cannot be repaired without a backup. This tool does the conversion in a planned, verified and **reversible** way.
-**Author:** Nicolas Fabert · **Version:** 3.1.1, 2026-11-09 ([changelog](CHANGELOG.md)).
+**Author:** Nicolas Fabert · **Version:** 3.1.2, 2026-11-09 ([changelog](CHANGELOG.md)).
> [!CAUTION]
> Convert creates **new, empty** mailboxes in Exchange Online: the content of the on-premises mailboxes is not moved. A Recover deprovisions the cloud mailboxes: export first what was received in the cloud during the disaster, or protect it with a retention policy (reference guide, chapter 6).
@@ -68,7 +68,7 @@ One path for everyone. Set the tool up once (**1 to 4**), then take branch **A**
# 1 · Get your rights. Give the table "Requirements" below to your administrator (minimum rights, derived from the code).
# 2 · On the server, in PowerShell 7.5+ as administrator: put the tool in its folder and unblock it.
-# Download PraRemoteMailbox-3.1.1.zip from the latest release (under Assets, not Source code) and extract it to D:\PRA\PraRemoteMailbox
+# Download PraRemoteMailbox-3.1.2.zip from the latest release (under Assets, not Source code) and extract it to D:\PRA\PraRemoteMailbox
Get-ChildItem D:\PRA\PraRemoteMailbox -Recurse -File -Force | Unblock-File
Install-Module ExchangeOnlineManagement -MinimumVersion 3.10.0 -Scope AllUsers -Force
Install-Module Microsoft.Graph.Authentication, Microsoft.Graph.Users -Scope AllUsers -Force
diff --git a/package/Invoke-PraRemoteMailbox.ps1 b/package/Invoke-PraRemoteMailbox.ps1
index 6ed4af6..7752041 100644
--- a/package/Invoke-PraRemoteMailbox.ps1
+++ b/package/Invoke-PraRemoteMailbox.ps1
@@ -131,7 +131,7 @@
.NOTES
Author : Nicolas Fabert
- Version : 3.1.1
+ Version : 3.1.2
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).
diff --git a/package/PackageIntegrity.psd1 b/package/PackageIntegrity.psd1
index 09a89a7..e935362 100644
--- a/package/PackageIntegrity.psd1
+++ b/package/PackageIntegrity.psd1
@@ -1,5 +1,7 @@
-# PRA Remote Mailbox 3.1.1 - authenticated package integrity manifest
+# PRA Remote Mailbox 3.1.2 - authenticated package integrity manifest
# Generated only after the final stable-file signatures and timestamps.
+# DRAFT FOR 3.1.2 (unsigned): the SHA256 of the non-PowerShell files are current; the SHA256 of the PowerShell files and this
+# file's signature are NOT regenerated. The owner signs the PowerShell files, then regenerates and signs this manifest.
@{
SchemaVersion = 1
Algorithm = 'SHA256'
@@ -16,15 +18,15 @@
@{ Path = 'module\PRA.Gui.Directory.ps1'; Sha256 = 'BAAEF3DA87298C5557653AAB2B6C1CB8A0F2E027B61BB9A028411B0EFE5CB26B' }
@{ Path = 'module\Test-PackageIntegrity.ps1'; Sha256 = 'E28EA67BE7806D16F3D36846C9B67E6E54105CD5ADD2A685D39DE08F255178E9' }
@{ Path = 'module\PRA.Gui.xaml'; Sha256 = 'D392FF147CB10F853387BFA58F1330D974C2CCA309DFC2278051654AA06719FD' }
- @{ Path = 'templates\Report.template.html'; Sha256 = 'DF102677910353421E60C0EC551B1F937FAFD7AED82718FEBE489DDD9988D1A6' }
+ @{ Path = 'templates\Report.template.html'; Sha256 = 'BC9F3246EAD4B9DB12309F73CD2596FBD814DE9A779BCB1BDD75B5C4687670EC' }
@{ Path = 'config\Targets.sample.csv'; Sha256 = '564C746AFDE5A5EADEBFD4449A7BB372B4D63E8B7C8352ACF825458650A458EF' }
@{ Path = 'config\SharedPermissions.sample.csv'; Sha256 = '7838261190B01E705505EAE8C1664FCFD9143E4E3F39D3E0968A02A0B7951B5F' }
- @{ Path = 'README.md'; Sha256 = 'C88076428F2E0F86F26D799C5BC61FEBC8B2BD290E6FF19018C9922527DB36D4' }
+ @{ Path = 'README.md'; Sha256 = '37BE8A7553A8D6A2135F59558DDD2F043264422C45D0A08DE57A41885818FC64' }
@{ Path = 'LICENSE'; Sha256 = 'A91A28EED601C15D06E439F83666F0EBE1AA7897DE37D350108147C7804FD94B' }
- @{ Path = 'docs\PraRemoteMailbox-Guide.html'; Sha256 = 'BEED6E7D79365E5F03F44AB5539D6F2E75AA7E0F86E761358289E728E022970C' }
- @{ Path = 'docs\PraRemoteMailbox-Guide.md'; Sha256 = '699D2659252122D91C5174E799FC2C47CEC21D90A64AE14AD9811A302AD6CE00' }
- @{ Path = 'docs\PraRemoteMailbox-UserGuide.html'; Sha256 = 'B79F52F7B44BE72765B0E1285ADE3FE9A8CB28946DA4D8DAFBF64EDED4173319' }
- @{ Path = 'docs\PraRemoteMailbox-UserGuide.md'; Sha256 = 'A3D3CD43D7DCBAD308EC8288E50922FE933B623198BAEC5BA8603F738F613E94' }
+ @{ Path = 'docs\PraRemoteMailbox-Guide.html'; Sha256 = '862D9919E8B2872B981EDABB563AC64EBC5F249364D918865D98ACC6D8ACD46B' }
+ @{ Path = 'docs\PraRemoteMailbox-Guide.md'; Sha256 = 'B81E6B5260C93DF8254F79937A4A81DEDFC7B9716EBF67E3ECCF07E8EA4B41FC' }
+ @{ Path = 'docs\PraRemoteMailbox-UserGuide.html'; Sha256 = '5500C645D47DF19AF0D95107BD4973D456162CFEDEABE1D778D17024EF1E7E36' }
+ @{ Path = 'docs\PraRemoteMailbox-UserGuide.md'; Sha256 = '48307BB4E5A69D21E11798357A3A7A7542C14A4A34DB19AB30209B1B560CFCC4' }
@{ Path = 'docs\images\console-next-cloud-light.png'; Sha256 = '71F1828DE23288E41A65850B702BC7AC364308E9C023AFB8F86014565BEBAC01' }
@{ Path = 'docs\images\console-next-finalize-light.png'; Sha256 = '3337D271231C52739DAC067C0A52788D6E921B3A08D8ACC9895F6B662C95852A' }
@{ Path = 'docs\images\console-next-global-light.png'; Sha256 = '87111B9A401A97788F138C18E5E514369DA725AC91E237803A681DFC7EE13A3E' }
@@ -72,8 +74,8 @@
@{ Path = 'docs\images\console-verify-rollback-light.png'; Sha256 = '91846AC0A6480E95D5A1C7F8D2643B06AD61DF8260853FD1DBD8CBACB841165A' }
@{ Path = 'docs\images\console-verify-scope-light.png'; Sha256 = 'B4BB47C7BA8334B2C03D4427FB91FE1D3041007E3697A9BEAB4C461DCD970281' }
@{ Path = 'docs\images\guide-dictionary-light.png'; Sha256 = 'E186BE9EC2E1E121503D4B86C67761AA1ABCD63C7D79827C1DB7E019851D6BD9' }
- @{ Path = 'docs\images\readme-banner-dark.png'; Sha256 = '83DFE7FAF4407AAAAFADA79448DA4C22ADAF2C24574A7F2AD7D89DCF9DA9681D' }
- @{ Path = 'docs\images\readme-banner-light.png'; Sha256 = 'A86C5FA6C8CA38DA9807EA34F01CF415DB7B65A965B4A6051F15DD7A0273EA1A' }
+ @{ Path = 'docs\images\readme-banner-dark.png'; Sha256 = '11B93190CCEAD066DCB11701789598B74BC5A848583E5DC38114581FC998CFBB' }
+ @{ Path = 'docs\images\readme-banner-light.png'; Sha256 = '2EC554756EC77EF7D0D3DC5D03827E4733CDA689E16C4A1862695E679E0A0FE4' }
@{ 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' }
@@ -94,7 +96,7 @@
@{ 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 = 'B9786DB44462BB35FD552389665938635223377DF286703625D030D3BE6BB9C4' }
+ @{ Path = 'CHANGELOG.md'; Sha256 = 'D746A3CBF9DD7FCA216D6C36E7FED341991A0BE630A6E1F51B6DA50D290D5AAF' }
)
}
diff --git a/package/PraRemoteMailbox.psd1 b/package/PraRemoteMailbox.psd1
index 96fb692..7d691cc 100644
--- a/package/PraRemoteMailbox.psd1
+++ b/package/PraRemoteMailbox.psd1
@@ -19,7 +19,7 @@
#
@{
RootModule = 'PraRemoteMailbox.psm1'
- ModuleVersion = '3.1.1'
+ ModuleVersion = '3.1.2'
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.'
diff --git a/package/PraRemoteMailbox.psm1 b/package/PraRemoteMailbox.psm1
index f27dd07..d668f1d 100644
--- a/package/PraRemoteMailbox.psm1
+++ b/package/PraRemoteMailbox.psm1
@@ -18,7 +18,7 @@
.NOTES
Author : Nicolas Fabert
- Version : 3.1.1
+ Version : 3.1.2
History : see CHANGELOG.md
#>
#Requires -Version 7.5
diff --git a/package/README.md b/package/README.md
index 9ea76a1..1d7fd11 100644
--- a/package/README.md
+++ b/package/README.md
@@ -1,6 +1,6 @@
# 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. PowerShell 7.5+ engine, optional WPF window. Author: Nicolas Fabert. Version 3.1.1.
+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.1.2.
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.
diff --git a/package/config/PraRemoteMailbox.config.psd1 b/package/config/PraRemoteMailbox.config.psd1
index 8f36dcb..17cbee9 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 : 3.1.1
+# Version : 3.1.2
#
# This file is read by Invoke-PraRemoteMailbox.ps1. It is a PowerShell data
# file: text between quotes, $true / $false, numbers, and @( ) for lists.
diff --git a/package/docs/PraRemoteMailbox-Guide.html b/package/docs/PraRemoteMailbox-Guide.html
index 7ebe431..89b270d 100644
--- a/package/docs/PraRemoteMailbox-Guide.html
+++ b/package/docs/PraRemoteMailbox-Guide.html
@@ -184,9 +184,9 @@
main { padding: 0; max-width: none; } .section { break-inside: avoid-page; box-shadow: none; } .part { break-before: page; }
}
-