cleaned logging

This commit is contained in:
poslop
2026-01-14 15:30:16 -06:00
parent d981edea9c
commit 61aef331f2

View File

@@ -35,7 +35,6 @@ foreach ($HKLMPrinterPaths in $HKLMPrinterPaths) {
Remove-Item -Path "Registry::${HKLMPrinterPaths}" -Recurse -Force -ErrorAction Stop
Write-Host "Removed local machine key ${HKLMPrinterPaths}" -ForegroundColor Green
} catch {
Write-Host "Error: $($_.Exception.Message)"
}
}
@@ -48,7 +47,6 @@ foreach ($sidItem in $sids) {
Remove-Item -Path "Registry::HKEY_USERS\${sid}${HKUsersPrinterPath}" -Recurse -Force -ErrorAction Stop
Write-Host "Removed user profile key HKEY_USERS\${sid}${HKUsersPrinterPath}" -ForegroundColor Green
} catch {
Write-Host "Error: $($_.Exception.Message)"
}
}
}