diff --git a/scripts/diagnostics/Capture-MclCache.cmd b/scripts/diagnostics/Capture-MclCache.cmd new file mode 100644 index 0000000..aab8990 --- /dev/null +++ b/scripts/diagnostics/Capture-MclCache.cmd @@ -0,0 +1,10 @@ +@echo off +rem Double-click after a Media Creator Lite run finishes. +rem Asks pro or ltsc, then runs Capture-MclCache.ps1 from this folder. +setlocal +set "LABEL=%~1" +if "%LABEL%"=="" set /p "LABEL=Which MCL run just finished? Type pro or ltsc and press Enter: " +if "%LABEL%"=="" set "LABEL=run" +powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0Capture-MclCache.ps1" -Label "%LABEL%" +echo. +pause diff --git a/scripts/diagnostics/Capture-MclCache.ps1 b/scripts/diagnostics/Capture-MclCache.ps1 new file mode 100644 index 0000000..4a08ee0 --- /dev/null +++ b/scripts/diagnostics/Capture-MclCache.ps1 @@ -0,0 +1,134 @@ +<# +.SYNOPSIS + Captures the layout of a Media Creator Lite cache, plus its small + control files, so the PXE import can be checked against what the + current MCL actually writes. + +.DESCRIPTION + Run on the PC where Media Creator Lite just FINISHED a run. Run it once + after the Windows 11 Pro run and once after the Windows 11 LTSC run, + before starting the next MCL run (MCL deletes the cache when it starts). + + .\Capture-MclCache.ps1 -Label pro + .\Capture-MclCache.ps1 -Label ltsc + + It writes, under the Desktop: + mcl-capture-