Update samy.ps1
This commit is contained in:
6
samy.ps1
6
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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user