Update samy.ps1
This commit is contained in:
4
samy.ps1
4
samy.ps1
@@ -2192,7 +2192,9 @@ function Invoke-SamyPrinterInstall {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-LogHybrid "Printer install failed for Client=$ClientCode Profile=$ProfileName: $($_.Exception.Message)" Error Printers -LogToEvent
|
Write-LogHybrid (
|
||||||
|
"Printer install failed for Client={0} Profile={1}: {2}" -f $ClientCode, $ProfileName, $_.Exception.Message
|
||||||
|
) Error Printers -LogToEvent
|
||||||
throw
|
throw
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user