I’m encountering the following error when attempting to disable an account in Active Directory:
["Error(s) reported back from the IQService - Before Script returned non-zero exit code : -1073741502 : "]
This same error also occurs when trying to create or modify accounts in AD. These operations were working fine previously, but they’ve suddenly started failing with this error.
Is anyone else facing this issue? If you have any insights or suggestions to resolve it, please let me know.
@naveenkarthikkrk - As you said, this was working previously, was there any recent update to the IQService, PowerShell, or Windows environment ?
Also, was there any change in permissions or security settings affecting script execution?
We tried multiple approaches to resolve the issue but were unsuccessful. Upon further investigation, we identified that the IQService CPU utilization was consistently reaching 100%, which caused the services to stop. To mitigate this, we upgraded the machine’s core and storage configuration.
Additionally, while reviewing the script, we found that it was calling another function unnecessarily, which contributed to the error. This appears to be an underlying OS issue related to the high number of PowerShell scripts running. Please note that IQService can support a maximum of 100 script threads running at a time.
We recommend reviewing your script and the logic within it, as there could be a loop or repeated function call that results in never-ending execution and high CPU usage.