pull/263/head
KnifMelti 2023-01-23 23:57:40 +01:00
parent a56ee49a35
commit ceb80f1138
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ function Add-ModsReg ($AddKey, $AddValue, $AddTypeData, $AddType) {
} }
function Remove-ModsReg ($DelKey, $DelValue) { function Remove-ModsReg ($DelKey, $DelValue) {
if ("$DelKey" -like "HKEY_LOCAL_MACHINE*") { if ($DelKey -like "HKEY_LOCAL_MACHINE*") {
$DelKey = $DelKey.replace("HKEY_LOCAL_MACHINE","HKLM:") $DelKey = $DelKey.replace("HKEY_LOCAL_MACHINE","HKLM:")
} }
if (Test-Path "$DelKey") { if (Test-Path "$DelKey") {