mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-04 06:50:09 +00:00
Update-WPFFeatureEnableLegacyRecovery (#3829)
* Update feature.json * Update feature.json
This commit is contained in:
@@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user