Update samy.ps1

This commit is contained in:
2025-12-08 16:21:50 -05:00
committed by syelle
parent f34a95d290
commit fead0811f2

View File

@@ -1845,7 +1845,7 @@ function Get-SamyClientListFromServer {
}
$resp = Invoke-RestMethod -Uri $Uri `
-Method Get `
-Method Post `
-Headers $headers `
-ContentType 'application/json' `
-ErrorAction Stop
@@ -2275,7 +2275,7 @@ function Ensure-SamyPrinterDriver {
# 4b) Register the printer driver with Add-PrinterDriver
try {
Write-LogHybrid "Calling Add-PrinterDriver -Name '$driverName' -InfPath '$infPath'." Info Printers -LogToEvent
Add-PrinterDriver -Name $driverName -InfPath $infPath -ErrorAction Stop
Add-PrinterDriver -Name $driverName -ErrorAction Stop
}
catch {
Write-LogHybrid "Add-PrinterDriver failed for '$driverName' using '$infPath': $($_.Exception.Message)" Error Printers -LogToEvent
@@ -2939,4 +2939,3 @@ function Install-DattoRMM {
}