Credential Provider - APPAP087E Application authentication failure. APPAP137W Failed to find out application script file path. (Error: Process has no arguments. (command: "), Error code: -1)
97
Created On 11/10/26 10:53 AM - Last Modified 11/10/26 15:52 PM
Symptom
When running the CLIPasswordSDK from a powershell script that is using hash authentication for the ps1 script, the following error is thrown in the appaudit log:
APPAP087E Application authentication failure
With debug turned on, the full error is shown in the apptrace log:
APPAP087E Application authentication failure. APPAP137W Failed to find out application script file path. (Error: Process has no arguments. (command: "), Error code: -1)
Environment
Privileged Access Manager (PAM, self-hosted) Credential Provider
Cause
This is caused by running the script using the following command:
powershell.exe -file C:\Path\To\myscript.ps1
Resolution
Run the powershell command using /file instead of -file:
powershell.exe /file C:\Path\To\myscript.ps1