Update-WPFFeatureEnableLegacyRecovery (#3829)

* Update feature.json

* Update feature.json
This commit is contained in:
Gabi
2026-01-08 20:34:09 +02:00
committed by GitHub
parent eec16bdce5
commit 3c87c3bc53

View File

@@ -100,13 +100,7 @@
"Order": "a018_", "Order": "a018_",
"feature": [], "feature": [],
"InvokeScript": [ "InvokeScript": [
" "bcdedit /set bootmenupolicy legacy"
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
"
], ],
"link": "https://winutil.christitus.com/dev/features/features/enablelegacyrecovery" "link": "https://winutil.christitus.com/dev/features/features/enablelegacyrecovery"
}, },
@@ -118,13 +112,7 @@
"Order": "a019_", "Order": "a019_",
"feature": [], "feature": [],
"InvokeScript": [ "InvokeScript": [
" "bcdedit /set bootmenupolicy standard"
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
"
], ],
"link": "https://winutil.christitus.com/dev/features/features/disablelegacyrecovery" "link": "https://winutil.christitus.com/dev/features/features/disablelegacyrecovery"
}, },