AD Disable operation throws this error :["Error(s) reported back from the IQService - Before Script returned non-zero exit code : -1073741502 : "]

Hi @vidhi ,

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.

Thanks,

Naveen