From 186b8b04eb1d4d0b6150c5425edc03d8e7d8e452 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Wed, 11 Apr 2018 21:20:35 +0200 Subject: [PATCH] Better output for DelRegKey() --- cleanW10.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]{