IQService - After script returned non zero exit code : 5

We have created an AD After Modify rule referencing link below and attached it to AD source as a native Rule.

Reference - IdentityNow Rule Guide - After Modify Rule - Compass

“attributes”: {
“ObjectOrientedScript”: “true”,
“disabled”: “false”,
“extension”: “.ps1”,
“program”: “powershell.exe”,
“sourceVersion”: “1.0”,
“timeout”: “300”
}

The above attributes are also added.

When trying to execute rule we keep getting error below from IQService :
After script returned non zero exit code:5

IQService log:
08/02/2022 12:26:05 : AbstractConnector [ Thread-23 ] DEBUG : “Started process”
08/02/2022 12:26:06 : AbstractConnector [ Thread-23 ] DEBUG : “Script return code : 5”
08/02/2022 12:26:06 : AbstractConnector [ Thread-23 ] DEBUG : “EXIT executeScript”
08/02/2022 12:26:06 : AbstractConnector [ Thread-23 ] DEBUG : "After script returned non zero exit code : 5 : "
08/02/2022 12:26:06 : AbstractConnector [ Thread-23 ] DEBUG : “EXIT executePostScript”
08/02/2022 12:26:06 : AbstractConnector [ Thread-23 ] DEBUG : “EXIT Provision”

There are no logs generated from the Connector rule or from powershell it invokes.

How to debug this issue?

This issue was resoled for us by the Network team. Clyance was blocking the powershell scripts from executing. They had to modify some policy to allow powershell scripts to execute.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.