Update samy.ps1

This commit is contained in:
2025-12-08 16:21:50 -05:00
parent e5da914b51
commit 2a422371f7

View File

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