cancel
Showing results for 
Search instead for 
Did you mean: 

ToShellArgs Error Message

former_member190695
Participant
0 Kudos

Hi All,

I am trying to invoke a PowerShell script with the SAP IdM 7.2 SP8 default ToCustom Pass using ToShellArgs pass type.

ToShellArgs.addEntry

java.io.IOException: Cannot run program "c:/scripts/test1.ps1": CreateProcess error=193, %1 is not a valid Win32 application

I can successfully run the script directly in PowerShell without any issues.

I have created a .BAT file that calls the script and and this works fine as well.

The problem with the .BAT file is that I am unable to figure out how to pass additional parameters.

Thanks!

Ridouan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try:

"<path>\powershell.exe c:\scripts\test1.ps1"

A ps1 is not a valid executalbe even though the association is there.

Peter

former_member190695
Participant
0 Kudos

Hi Peter,

Thanks for your answer.

In a To Custom pass the executable path is given in the naming attribute line.

I can recall I used this option before, but probably it was a different extension.

I got it working with the Shell execute pass, because I need to pass many parameters to the function I was considering the To Custom pass.

Regards,

Ridouan