Optimize performance of PowerShell execution

Which IIQ version are you inquiring about?

8.1p2

Share all details about your problem, including any error messages you may have received.

This is more of a discussion post.
Currently, in our leaver flow, we have to execute a PowerShell script, which is executed as the last step of the workflow. We schedule the PS script execution through scheduled Workflow Request.
However, in case of bulk termination involving ~1k users, around 1k PS scripts are launched at the same time, resulting in separate PS sessions, which causes the memory and CPU of the IQService server to spike and PS processing is slow as well.
Any pointers on how we can optimize this? Thanks!

Hi Sonali,

Instead of launching a separate PowerShell session for each user, you can batch the users and process them in groups. This can significantly reduce the number of concurrent PowerShell sessions.

Regards,
Arun

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