Fix missing dism metadata (#4516)

* Fix product key invalid and missing metadata on some isos

* Fix Gabi's broken light mode pr
This commit is contained in:
Chris Titus
2026-05-19 14:11:27 -05:00
committed by GitHub
parent 9d85eea4e5
commit 5aa099f6e2
2 changed files with 99 additions and 2 deletions
+12 -2
View File
@@ -1,11 +1,21 @@
Function Get-WinUtilToggleStatus {
if (-not $ToggleSwitchReg) {
param(
[string]$ToggleSwitch
)
$toggleSwitchReg = if ($ToggleSwitch) {
$sync.configs.tweaks.$ToggleSwitch.registry
} else {
$ToggleSwitchReg
}
if (-not $toggleSwitchReg) {
return $false
}
New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS
foreach ($regentry in $ToggleSwitchReg) {
foreach ($regentry in $toggleSwitchReg) {
if (-not (Test-Path $regentry.Path)) {
New-Item -Path $regentry.Path -Force | Out-Null