Thank you, I appreciate the amount of assistance you've provided.
They did not match; installing the matching version on the remote server seems to have fixed the terminating error.
The script now runs, however, the report it generates is just an empty file.
If I examine the $listitems variable this the error I see:
Completed : True
Aborted : False
GenerationException : Softerra.Adaxes.CommandPipeline.Actions.ExecuteActionWrapperException: Exception calling "GetParameterValue" with "1" argument(s): "The number of values doesn't match the number of items defined for parameter 'Object types'." --->
Softerra.Adaxes.Parameters.InvalidParameterValueException: The number of values doesn't match the number of items defined for parameter 'Object types'.
at Softerra.Adaxes.Parameters.AdmParameterCheckList.ValueToString(Object valueArg, ADM_VALUETARGET_ENUM valueTargetArg)
at Softerra.Adaxes.Reports.AdmReportArguments.GetParameterValue(String paramNameArg, ADM_VALUETARGET_ENUM valueTargetArg)
at Softerra.Adaxes.Reports.ReportScriptContextBase.GetParameterValue(String paramName)
at CallSite.Target(Closure , CallSite , Object , String )
--- End of inner exception stack trace ---
at Softerra.Adaxes.CommandPipeline.Actions.GenerateReportAction.ExecuteAction(IAdmTop targetObject)
at Softerra.Adaxes.CommandPipeline.Actions.ActionBase.Execute(IAdmTop targetObjectArg)
at Softerra.Adaxes.CommandPipeline.Actions.ActionBase.Execute(ICommand command)
GenerationLog : {[Error 0x80004005] : Exception calling "GetParameterValue" with "1" argument(s): "The number of values doesn't match the number of items defined for parameter 'Object types'." Stack trace: at <ScriptBlock>, <No file>: line 2, [Error
0x80004005] : Exception calling "GetParameterValue" with "1" argument(s): "Input string was not in a correct format." Stack trace: at <ScriptBlock>, <No file>: line 4, [Error 0x80004005] : You cannot call a method on a null-valued
expression. Stack trace: at <ScriptBlock>, <No file>: line 8, [Error 0x80004005] : You cannot call a method on a null-valued expression. Stack trace: at <ScriptBlock>, <No file>: line 9...}
DataRetrievalLog : {}
Here are the code for the param-ObjectTypes:
#param-ObjectTypes Checkbox List
$Users = "ADAXESPARAMID:{abe4fd4b-fbee-457a-b0e6-361e7c2a4325}"
$Computers = "ADAXESPARAMID:{3188db7a-6203-47d0-b231-73137eb5e54b}"
$Groups = "ADAXESPARAMID:{ba5d243f-4bd8-4a97-b93c-16073f55c702}"
$Contacts = "ADAXESPARAMID:{821e49b4-40e7-47b0-b564-8a9a809dca8e}"
$OUs = "ADAXESPARAMID:{e61c5598-7f48-4da9-a439-d052d0463884}"
$checkedItemIds = @($Groups)
$arguments.SetParameterValue("param-ObjectTypes", $checkedItemIds)