From 1a7ca6f4eb25972533cc8c4100fdf5f33291431b Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Fri, 5 Dec 2025 15:24:18 -0500 Subject: [PATCH] Update samy.ps1 --- samy.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/samy.ps1 b/samy.ps1 index 9bd6b4e..468711a 100644 --- a/samy.ps1 +++ b/samy.ps1 @@ -2192,8 +2192,10 @@ function Invoke-SamyPrinterInstall { } } catch { - Write-LogHybrid "Printer install failed for Client=$ClientCode Profile=$ProfileName: $($_.Exception.Message)" Error Printers -LogToEvent - throw + Write-LogHybrid ( + "Printer install failed for Client={0} Profile={1}: {2}" -f $ClientCode, $ProfileName, $_.Exception.Message + ) Error Printers -LogToEvent + throw } }