diff --git a/Scripts/Features/ImportRegistryFile.ps1 b/Scripts/Features/ImportRegistryFile.ps1 index bf91aac..99aff39 100644 --- a/Scripts/Features/ImportRegistryFile.ps1 +++ b/Scripts/Features/ImportRegistryFile.ps1 @@ -111,7 +111,7 @@ function ImportRegistryFile { $unloadExitCode = $LASTEXITCODE if ($unloadExitCode -ne 0) { - throw "Failed to unload registry hive HKU\Default after importing '$path' (exit code: $unloadExitCode)" + Write-Warning "Failed to unload registry hive HKU\Default after importing '$path' (exit code: $unloadExitCode)" } } }