From 6b1ef583b44917d077b3021670368fd4bdf45352 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Tue, 9 Dec 2025 15:06:10 -0500 Subject: [PATCH] Fix PowerShell string parsing in Backup-GERegistry.ps1 Use string concatenation instead of variable interpolation to avoid PowerShell interpreting KB as a special token. Co-Authored-By: Claude --- scripts/Backup-GERegistry.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Backup-GERegistry.ps1 b/scripts/Backup-GERegistry.ps1 index 871f9d5..e8df247 100644 --- a/scripts/Backup-GERegistry.ps1 +++ b/scripts/Backup-GERegistry.ps1 @@ -176,7 +176,7 @@ foreach ($type in $registryPaths.Keys) { if ($success -and (Test-Path $regInfo.OutputFile)) { $fileSize = (Get-Item $regInfo.OutputFile).Length $fileSizeKB = [math]::Round($fileSize / 1KB, 2) - Write-ColorOutput " Saved to: $($regInfo.OutputFile) ($fileSizeKB KB)" "Green" + Write-ColorOutput (" Saved to: " + $regInfo.OutputFile + " (" + $fileSizeKB + " KB)") "Green" $backupResults += @{ Type = $type @@ -240,7 +240,7 @@ if ($mergedCount -gt 0) { $fileSize = (Get-Item $combinedFile).Length $fileSizeKB = [math]::Round($fileSize / 1KB, 2) - Write-ColorOutput " Combined backup saved: $combinedFile ($fileSizeKB KB)" "Green" + Write-ColorOutput (" Combined backup saved: " + $combinedFile + " (" + $fileSizeKB + " KB)") "Green" # Clean up individual files if combined was successful foreach ($result in $backupResults | Where-Object { $_.Success }) {