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

Hi Everyone,

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.

Thanks,
Naveen

@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?

HI @nithyamn13 ,
I have checked the permissions , it seems to be right . There is no change in the permission or security settings .

Hi Naveen please delete non-TLS ports in IQService registry and the code starts working as usual

Hi @HussainshaSyed001 ,

Do you mean to update the non-TLS port to zero ?? If no , then how to delete the non -TLS ports in IQService registry?

Thanks,
Naveen

yes please to zero. IQService.exe -p 0 if it wont work use -1 in place of zero

Hi @HussainshaSyed001 , The non-TLS port are already disabled in our instance .Is there any other way to resolve it?

Any luck with resolving this issue, Naveen? We are seeing the same thing at our client too.

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

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