mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-06-04 22:27:28 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user