diff --git a/samy.ps1 b/samy.ps1 index a08ba31..e894020 100644 --- a/samy.ps1 +++ b/samy.ps1 @@ -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 { } -