Repository navigation
WinPrep v0.2.0-alpha.1
Pre-releaseWinPrep v0.2.0-alpha.1
This release narrows WinPrep to the two operations the product is actually
about, and gives the handover the demonstration-data cleanup it was missing.
It is a prerelease: automated tests and the Windows CI pipeline pass, but the
full Windows lifecycle - a real Audit Mode handover and a verified
first-time-setup boot on a reference machine - has not yet been executed.
Treat it as release-candidate quality for testing on disposable machines
first.
What changed
Removed: the hardware health checks. winprep check (storage, battery,
problem devices, activation) and winprep status are gone. Hardware
diagnostics never belonged to the preparation workflow; a refurbisher who
needs them should run a dedicated tool. WinPrep is now exactly two
operations: Prepare for Display and Clean & Finish.
Added: a real cleanup before the handover. Clean & Finish now builds an
explicit, typed plan from the demonstration profile - the built-in
Administrator's profile, resolved by SID through the registry - covering the
Downloads contents, the profile's temporary files, the browsing data of
Microsoft Edge and Google Chrome, and WinPrep's own data directory. The plan
is shown before anything is modified; one deliberate confirmation authorizes
the whole sequence; execution revalidates every path, never follows symlinks
or junctions, and verifies its results. Anything the plan could not clean
safely (a running browser, a redirected Downloads folder) is reported and
stops the handover instead of being half-done. An incomplete cleanup never
leads to a reseal.
Fixed: the confirmation now comes first. In 0.1.0 the command-line and
fallback flows removed WinPrep's own artifacts before asking for the final
confirmation, so declining still left the machine modified. One shared
operation controller now sequences the workflow identically for the menu,
the CLI, and the fallback interface: inspect, plan, confirm, clean, verify,
reseal. Cancel at any point before the confirmation and nothing has been
touched.
Changed: the Sysprep window is no longer a hard stop. Audit Mode opens
the System Preparation Tool at every sign-in; 0.1.0 treated any sysprep.exe
process as a reason to block the handover. The inspection now distinguishes
the idle window (reported as an attention item) from an active operation
(detected through freshly written Sysprep logs, which still blocks). WinPrep
never launches Sysprep while another Sysprep process exists, and it still
never closes the window for you.
Changed: extra accounts and profiles block the handover. Accounts and
profiles survive the reseal, so leftover ones would be handed to the buyer.
They now stop the handover with removal instructions instead of a warning
you could click through. WinPrep still never deletes accounts itself.
Internal: no more PowerShell. The account list is read through the SAM
management APIs, leaving Sysprep as the only external program WinPrep ever
launches.
Verification status
Verified by automated tests on Linux and the GitHub Actions Windows runner:
preflight logic, cleanup planning and execution against real filesystems,
scope containment (symlinks and junctions are removed as links, never
followed), cancellation semantics, the shared CLI/TUI workflow, and CLI
smoke tests on a real Windows installation.
Not yet verified: the full lifecycle on a physical machine in Audit Mode -
Prepare for Display across repeated restarts, a real Clean & Finish with
Sysprep, and the next boot presenting OOBE. Do not use this release on a
customer's machine without running that lifecycle test yourself on a
disposable machine first.
If Sysprep fails, the tool points to the logs under
%WINDIR%\System32\Sysprep\Panther; the same paths are listed on every
failure report.