Skip to content

v50 patch 2

Choose a tag to compare

@ArthurJDurand ArthurJDurand released this 13 Oct 21:45
· 3 commits to main since this release

URL-builder fix, classifier diagnostics, hypervisor-aware sweep suppression, and a scoped workspace bus admission. ScriptVersion remains 50; ScriptPatchLevel moves from "1" to "2". No DesiredStateId change, no fleet-wide rebuild.

Added

  • Test-RunningInVirtualMachine. A hypervisor-detection helper that returns $true on a known hypervisor signature match, $false on no match, and $null when the query fails or returns empty/whitespace-only metadata. The signature list is deliberately un-anchored: the detector is a safety gate, so over-detection is preferred to under-detection.
  • Non-OS sweep suppression boundary. Remove-StrayRecoveryPartitions now suppresses its entire sweep when Test-RunningInVirtualMachine returns $true or $null. A host physical disk exposed to a guest via passthrough (Hyper-V) or raw disk access (VirtualBox) is indistinguishable from a genuine secondary internal disk by BusType alone; suppression is the safe direction. The OS-disk repair path is unaffected.
  • File Backed Virtual disk protection in the sweep. When the sweep does run, any non-OS disk whose BusType is File Backed Virtual is preserved individually — a mounted VHD/VHDX may contain another installation's recovery environment. The preservation appears in the aggregate summary line under a new preserved virtual: field.
  • Classifier diagnostic loop. Step 3 now logs each entry in the pre-strip third-party inventory — Driver, ProviderName, Version, OriginalFileName — before the source-ownership classification returns. Runs regardless of which classification the classifier reaches, so a Foreign-With-Drivers preserve has the driver identity in the log without reproducing the mount manually.
  • SCSI admitted for the running OS volume in the workspace candidate filter. A Hyper-V guest whose only fixed NTFS volume is its own OS disk now has an eligible workspace. SCSI is deliberately not added to $InternalWorkspaceBusTypes; it is admitted conditionally in Get-WorkDirCandidates only when the candidate volume is the running OS volume. A non-OS SCSI volume — which may be a passthrough host disk — is not admitted.

Changed

  • Get-GitHubBaseWinRE URL builder now resolves the restructured Windows 10 folder. The Windows 10 path was Win10; it is now Win10/x64. The Windows 11 path is unchanged. Without the fix, a Windows 10 machine taking the GitHub cold-start path would list the old folder and fail to find any Winre.7z.* parts.
  • .NOTES Version line updated to 50.2 (v50 patch 2). A new design-invariant bullet documents the sweep suppression boundary.

Changed (harness)

Test-WinRE.ps1 moves from v35 to v37 (two harness moves in this window). All changes are harness-only and do not trigger a managed-machine rebuild.

  • v36 adds a mirror of Test-RunningInVirtualMachine, a "Non-OS sweep suppression preview" section in Option 1 that reports the hypervisor-detection verdict and every non-OS recovery partition's disposition under the sweep's deletion rules, and a source-level mirror-binding assertion (check 20).
  • v37 adds the empty-metadata fail-closed guard to the harness's Test-RunningInVirtualMachine mirror, and extends check 20 with an assertion that binds the guard.

Migration Note

ScriptVersion remains 50, so the SCRIPT component of DesiredStateId is unchanged and no fleet-wide rebuild is forced. ScriptPatchLevel moves from "1" to "2", visible in the startup banner (WinRE Manager Started (v50 patch 2)) and in the harness menu (WinRE Manager Test Harness (v37)). A machine that ran v50 patch 1 continues on the fast path.

The four changes take effect only on machines that reach the specific code path each one touches: the URL-builder fix on a Windows 10 machine taking the GitHub cold-start path; the sweep suppression on a VM guest or on a machine with a mounted VHD/VHDX on a non-OS disk; the classifier diagnostic loop on a source with a non-zero pre-strip driver count; the SCSI admission on a machine whose OS disk bus type is SCSI (typically a Hyper-V guest).

Rollback: change $ScriptPatchLevel back to "1" and revert the v50 patch 2 changes. No DesiredStateId change; no second rebuild.

Field verification

Three fast-path runs on 2026-10-13 on the project's ASUS desktop test machine (PRIME H510M-D, i5-11400, Windows 11 build 26300). All took the fast path, all reported Byte drift from last deployment: NO, all exited 0. The new v50 patch 2 banner and the new Test-RunningInVirtualMachine verdict line (no known hypervisor signature (Manufacturer='ASUS', Model='System Product Name') -> treating as physical) fired as expected.

The URL-builder fix, the classifier diagnostic loop, the File Backed Virtual protection, the SCSI admission, and the Test-RunningInVirtualMachine suppression branch were not exercised by these runs. They are covered by inspection and by the harness's source-level assertion for Test-RunningInVirtualMachine.

Known limitations

The eight live limitations listed in the CHANGELOG carry forward unchanged from v50 patch 1. No new user-facing limitations.

The non-OS sweep suppression boundary is a heuristic, not a security boundary. A hypervisor configured to spoof its manufacturer/model strings, or an unusual platform not covered by the signature list, may not match. The File Backed Virtual protection is independent and provides a second layer; the residual is a missed sweep (the safe direction).

Unchanged

The deployed WIM production recipe is unchanged. The strip stage, the source-selection preference order, the metadata-based drift detector, the pre-/disable race detector, the three-source selection chain, the transactional WIM replacement, the intervening-anchor plan, the architecture gate, the native-boot VHDX fail-closed gate, the source-ownership classification classes, the never-downgrade check, the storage-applicability gate, the backup action, the restore action, the run summary and narration layers, and the temporary resume task's registration and cleanup semantics are all unchanged. The state file schema, the manager config file schema, and the checkpoint file format are unchanged.

See CHANGELOG.md for the full release entry, per-machine field evidence, and the outstanding coverage items.