diff --git a/cleanW10.ps1 b/cleanW10.ps1 index 46bc3ba..bc5bdd3 100755 --- a/cleanW10.ps1 +++ b/cleanW10.ps1 @@ -221,16 +221,16 @@ function DelRegKey { return } try { - Remove-ItemProperty -Path $path -Name $key + Remove-ItemProperty -Path $params.path -Name $params.key Write-host -ForegroundColor Green "done" } catch [System.Security.SecurityException]{ Write-Host -ForegroundColor Red "Error in DelRegKey`n`t" - Write-Host -ForegounndColor DarkRed "Access to $($params.path)\$($params.key) denied" + Write-Host -ForegoundColor DarkRed "Access to $($params.path)\$($params.key) denied" } catch { Write-Host -ForegroundColor Red -NoNewLine "Error in DelRegKey`n`t" - Write-Host -ForegounndColor DarkRed $Error[0].Exception.Message + Write-Host -ForegoundColor DarkRed $Error[0].Exception.Message } }