From 3c87c3bc536c3b0bd9839f7a7e92a78b96ad4ad7 Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Thu, 8 Jan 2026 20:34:09 +0200 Subject: [PATCH] Update-WPFFeatureEnableLegacyRecovery (#3829) * Update feature.json * Update feature.json --- config/feature.json | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/config/feature.json b/config/feature.json index 04b9be62..907a62ce 100644 --- a/config/feature.json +++ b/config/feature.json @@ -100,13 +100,7 @@ "Order": "a018_", "feature": [], "InvokeScript": [ - " - If (!(Test-Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood')) { - New-Item -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood' -Force | Out-Null - } - New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood' -Name 'Enabled' -Type DWord -Value 1 -Force - Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Legacy' -Wait - " + "bcdedit /set bootmenupolicy legacy" ], "link": "https://winutil.christitus.com/dev/features/features/enablelegacyrecovery" }, @@ -118,13 +112,7 @@ "Order": "a019_", "feature": [], "InvokeScript": [ - " - If (!(Test-Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood')) { - New-Item -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood' -Force | Out-Null - } - New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood' -Name 'Enabled' -Type DWord -Value 0 -Force - Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Standard' -Wait - " + "bcdedit /set bootmenupolicy standard" ], "link": "https://winutil.christitus.com/dev/features/features/disablelegacyrecovery" },