Compare commits

..

2 Commits

Author SHA1 Message Date
MyDrift
ff6fe4978a
Merge 1df18e7643 into ce1ef2a519 2024-11-03 20:45:07 +00:00
MyDrift
1df18e7643 add proper console log 2024-11-03 21:45:14 +01:00

View File

@ -35,11 +35,12 @@ function Set-WinUtilRegistry {
New-Item -Path $Path -Force -ErrorAction Stop | Out-Null
}
Write-Host "Set $Path\$Name to $Value"
if ($Value -ne "<RemoveEntry>") {
Write-Host "Set $Path\$Name to $Value"
Set-ItemProperty -Path $Path -Name $Name -Type $Type -Value $Value -Force -ErrorAction Stop | Out-Null
}
else{
Write-Host "Remove $Path\$Name"
Remove-ItemProperty -Path $Path -Name $Name -Force -ErrorAction Stop | Out-Null
}
} catch [System.Security.SecurityException] {