on 03-10-2014 3:25 PM
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
Try:
"<path>\powershell.exe c:\scripts\test1.ps1"
A ps1 is not a valid executalbe even though the association is there.
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.