diff --git a/cleanW10.ps1 b/cleanW10.ps1 index 4e8fdab..4e14174 100755 --- a/cleanW10.ps1 +++ b/cleanW10.ps1 @@ -319,7 +319,7 @@ function DelRegKey { return } try { - Get-ItemProperty -Path $params.path -Name $params.key + Get-ItemProperty -Path $params.path -Name $params.key | Out-Null } catch { Write-Host -ForegroundColor Yellow "key already deleted" @@ -327,7 +327,7 @@ function DelRegKey { } try { - #Remove-ItemProperty -Path $params.path -Name $params.key + Remove-ItemProperty -Path $params.path -Name $params.key Write-host -ForegroundColor Green "done" } catch [System.Security.SecurityException]{