mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-10-26 00:29:27 +00:00
New-Item -Force on an existing registry key deletes the key and its subkeys first, so the Recommended and Disable profiles wiped every other policy under the keys they write, such as WSUS settings or a target version pin. Restore the Test-Path guards these calls used before #3833, so only missing keys are created. The wipe also happened to clear a Win11 Creator update block left behind when its first-logon cleanup did not run, so Recommended now removes that block explicitly: DisableWindowsUpdateAccess, and the WSUS values only when they point at Creator's localhost:8080 marker. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Chris Titus <contact@christitus.com>