Update win-update-registry.ps1 to v1.1 - #129
Conversation
.VERSION
v1.1: [May 2026] - Updated the script (current)
- Fixed Get-VM failure when Hyper-V module is not available on host.
- Added guarded nested VM validation with safe fallback logging.
- Added explicit runtime parameter validation for rootKey, propertyType, controlSet, and required inputs.
- Updated helper import to Get-Disk-Partitions-v2 and aligned partition processing flow.
- Added rescue OS drive exclusion to avoid modifying the running rescue VM hive.
- Added per-partition reg load failure handling (skip bad partition, continue others).
- Added structured step-by-step logging, timestamped CSE log output, and final status tracking.
- Improved error handling to continue processing partitions safely and report aggregate result.
v1.0: Initial version
Issues Found🟡 Validation mismatch: allows unsupported root hives for
|
Updated version to 1.2 with enhancements for error handling and path validation. Added fallback for empty PSScriptRoot using Get-PSCallStack.
|
Tony Mocanu (@anmocanu) could you help us with the review of these findings FindingsCritical
Warning
Info
Operational Risk Assessment
|
🎉 CRITICAL UPDATE: Previously Blocked PR Now APPROVED!Script: 📊 Updated Test ResultsOverall Score: 89/100 (Grade B) ✅ 🎉 MAJOR IMPROVEMENT: Score increased from 70/100 (BLOCKED) to 89/100 (APPROVED)
✅ Previously Reported Critical Issues - NOW RESOLVEDAll 3 critical blockers from July 3 test have been addressed:
✅ Key Strengths
📈 Production ReadinessStatus: ✅ APPROVED FOR PRODUCTION All critical blockers resolved. Script is now production-ready. 📄 Full Test Report: Available in Azure-VM-POD WI #59993 Generated by VMRepairMint Script Testing Framework |
.VERSION
v1.1: [May 2026] - Updated the script (current)
- Fixed Get-VM failure when Hyper-V module is not available on host.
- Added guarded nested VM validation with safe fallback logging.
- Added explicit runtime parameter validation for rootKey, propertyType, controlSet, and required inputs.
- Updated helper import to Get-Disk-Partitions-v2 and aligned partition processing flow.
- Added rescue OS drive exclusion to avoid modifying the running rescue VM hive.
- Added per-partition reg load failure handling (skip bad partition, continue others).
- Added structured step-by-step logging, timestamped CSE log output, and final status tracking.
- Improved error handling to continue processing partitions safely and report aggregate result.
v1.0: Initial version