Anyone else get this error with CP using a ServiceNow MID server to run Powershell scripts? APPAP308E - Invalid process path. Full path is required

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Anyone else get this error with CP using a ServiceNow MID server to run Powershell scripts? APPAP308E - Invalid process path. Full path is required

L2 Linker

I'm restructuring a ServiceNow MID server to use CP instead of CCP and I'm able to run scripts just fine when I'm logged in locally as an admin user but when I have the MID server try to run them from a ServiceNow flow in a test run I get this error.

 

APPAP308E - Invalid process path. Full path is required

 

I'm not sure exactly what it's referencing by path? The actual call to the SDK worked fine when run locally. Anyone else run into this?

2 REPLIES 2

L7 Applicator

Hi @Conner DeRosier? 

 

Can you please try using absolute path as mentioned in this KB ?

 

https://community.cyberark.com/s/article/00004787

 

Hope it helps !

Thank you for the reply @Malhar Vora​. That is helpful and opening another powershell session as described in the article does work however that presents a bunch of other issues with getting the credentials back to the script that called the new session.

 

I'm wondering why that's needed though and I can't just call the full path like this

 

 $CyberArkCredentials = & 'C:\Program Files\CyberArk\ApplicationPasswordSdk\CLIPasswordSDK.exe' GetPassword /p AppDescs.AppID='APPID' /p Query="Safe=SAFENAME;Folder=Root;Object='OBJECTNAME'" /o Password

 

Since I am using a full path to call the SDK from my script. Although it only happens on a ServiceNow MID server run and not a local run.

  • 400 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!