Powershell process hanging

Powershell process hanging

SDP Version 9120


I have created a custom trigger with the following Execute Script Action:

cmd /C  powershell -WindowStyle hidden  -file test.ps1

As a test I set the trigger for the action to be the presence of a certain key work in the Subject field of a request.

When I create a new request with this word in the Subject field and click on "Add Request"  the action is triggered successfully. However the powershell process does not terminate and the browser window does not refresh. It remains in this state until I kill the powershell process.

The above behaviour occurs even when the powershell script contains the single command "Exit"!

If I run the command in a cmd window the script runs and the process terminates normally.

Any suggestions?

Thanks,

Roy



                  New to ADSelfService Plus?