cleaned logging
This commit is contained in:
1 parent
d981edea9c
commit
61aef331f2
1 file changed
-2
@@ -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)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user