Update sac-enabler.ps1 to v1.3 - #126
Conversation
This script enables Special Administration Console (SAC) and Serial Console boot settings on an attached OS disk's BCD store. It includes enhanced logic for Gen2 disks and improved error handling.
.VERSION
v1.3: [May 2026] - Updated the script again (current)
- Fixed breaking exception when the Hyper-V module is not installed on the host.
- Added explicit checking via Get-Module before executing nested VM discovery.
v1.2: [May 2026] - Updated the script
- Included advanced Gen2 unlettered EFI fallback and dynamic drive-letter assignment.
v0.1: Initial commit. This was the version 1.0 of the script
Issues Found🟡 Potential compatibility gap: only checks
|
Updated script to enable SAC and Serial Console boot settings on attached Windows disks, improving OS detection and error handling.
Updated the script to improve logging and error handling, including better management of temporary EFI drive letters and enhanced status tracking.
|
@anmocanu could you help us with the review of these findings FindingsCritical
Warning
Info
Operational Risk Assessment
|
VMRepair Script Update: sac-enabler.ps1🎯 SummaryComprehensive testing and validation of sac-enabler.ps1 with fault injection verification across multiple VM configurations. ✅ Test ResultsOverall Score: 76/100 (Grade: B)
🔬 Testing PerformedStrategy: Representative (4 configurations) Test Configurations
Fault Injection Validation:
📊 Detailed Test ArtifactsComplete test artifacts available in SME work item:
🔗 SME Work Item: Tooling 59896 win-sac-on 🚀 Improvements Recommended1.
|
|
Hi @glimoli @EdwinBernal1 @rymccall, the latest commit, 2cc5f47 addresses all the feedback received for this script. Please test it and let me know if we can go live. Thanks |
✅ Comprehensive Testing Complete - APPROVED FOR PRODUCTIONScript: 📊 Test ResultsOverall Score: 79/100 (Grade C) ✅
✅ Key Strengths
💡 Optional Enhancements (Non-blocking)
📈 Production ReadinessStatus: ✅ APPROVED FOR PRODUCTION No critical issues detected. Script is production-ready. 📄 Full Test Report: Available in Azure-VM-POD WI #59896 Generated by VMRepairMint Script Testing Framework |
This script enables Special Administration Console (SAC) and Serial Console boot settings on an attached OS disk's BCD store. It includes enhanced logic for Gen2 disks and improved error handling.
.VERSION
v1.3: [May 2026] - Updated the script again (current)
- Fixed breaking exception when the Hyper-V module is not installed on the host.
- Added explicit checking via Get-Module before executing nested VM discovery.
v1.2: [May 2026] - Updated the script
- Included advanced Gen2 unlettered EFI fallback and dynamic drive-letter assignment.
v0.1: Initial commit. This was the version 1.0 of the script