Update samy.ps1

This commit is contained in:
2025-12-05 15:24:18 -05:00
parent 49b6104741
commit 1a7ca6f4eb

View File

@@ -2192,8 +2192,10 @@ function Invoke-SamyPrinterInstall {
} }
} }
catch { catch {
Write-LogHybrid "Printer install failed for Client=$ClientCode Profile=$ProfileName: $($_.Exception.Message)" Error Printers -LogToEvent Write-LogHybrid (
throw "Printer install failed for Client={0} Profile={1}: {2}" -f $ClientCode, $ProfileName, $_.Exception.Message
) Error Printers -LogToEvent
throw
} }
} }