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