Update StackMonkey.ps1
This commit is contained in:
@@ -1604,7 +1604,13 @@ function Install-DattoRMM {
|
||||
}
|
||||
}
|
||||
}
|
||||
Invoke-ScriptMonkey @namedArgs
|
||||
#Invoke-ScriptMonkey @namedArgs
|
||||
try {
|
||||
Invoke-ScriptMonkey @namedArgs
|
||||
} catch [System.Management.Automation.ParameterBindingValidationException] {
|
||||
Write-Host " Invalid parameter: $($_.Exception.Message)" -ForegroundColor Red
|
||||
}
|
||||
|
||||
} else {
|
||||
Invoke-ScriptMonkey
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user