- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
01-17-2019 10:37 PM
I'm testing AIM authentication,but it fails with the following error,Not sure what I have missed,
[18/01/2019 | 16:26:20] | :: | APPAP087E Application authentication failure for Application BreakGlass (CASCU095E Failed to find out application script file path. (Error: Process has no arguments. (command: "), Error code: -1).)
[18/01/2019 | 16:26:20] | :: | APPAP002E Provider Prov_QH11266919 has failed to fetch password with query [Safe=AIMSafe;Folder=Root;Object=AIMTesting] for application [BreakGlass]. Fetch reason: []. Failure reason: [APPAP087E Application authentication failure]
These are the steps I have tried,
Under Authentication:
Hash = Created using the following command " AIMGetAppInfo.exe gethash /FilePath "C:\AIMTesting\psscript.ps1" "
OS User = Specified a local user in my laptop (Account Name = func-local)
PATH = C:\AIMTesting\psscript.ps1 Also enabled Internal scripts to get password
Created a Safe and gave Appprovider and Application the necessary permissions
Added Account func-local to the safe
Created a Test Script psscript.ps1 under C:\AIMTesting\
Ran the following command to retrieve password,
C:\Program Files (x86)\CyberArk\ApplicationPasswordSdk>CLIPasswordSDK.exe GetPassword /p AppDescs.AppID=BreakGlass /p Query="Safe=AIMSafe;Folder=Root;Object=AIMTesting" /o Password
APPAP087E Application authentication failure
Not sure where did i went wrong
01-18-2019 04:57 AM
Hi asunn,
try to run the script with the local account "func-local".
If you specify the OSUser, only that user will be able to interact with AIM using the script.
Safe rights should look like:
<Safe_storing_accounts>:
(but have a look at the guide, to be sure)
alternatively, limit first nothing for the AppID and add the limitations to it later on.
01-18-2019 07:51 AM
The problematic part is likely the restriction down to the os-user at this point:
OS User = Specified a local user in my laptop (Account Name = func-local)
Remove that restriction in the AIM application, and test again.
I've seen this problem before when running pscripts via AIM, effectively the file launching the script isn't trusted. I think there's a technote regarding this, but in the first instance, try launching powershell using the full paths.
01-18-2019 11:33 AM
System Requirements for workstations,
For developer endpoints:
Windows 8.x
Windows 7
Windows XP (64-bit)
it seems windows 10 is not supported..
01-20-2019 07:56 PM
@Balazs Racz @Malcolm Murray I tried removing limitations for both AIMAgent and APPID.Also ran the CMD using the OS-User specified under Application.and Finally removed OS User.Still same error.
@Anurag . Will try in Windows Server
01-22-2019 07:53 AM
@Antony Sunny : Can you first try to run the query with no App limitations (Application with no authentication) ?
01-24-2019 04:31 PM
@Himmat Bindra If we try removing the Hash Value it works.Looks like the issue is with generating the Hash using a absolute path.
As per CyberArk Solution,i tried executing the following commands to get Hash but both fails : AIMGetAppInfo.exe gethash /FilePath powershell.exe "C:\AIMTest\psscript.ps1"
AIMGetAppInfo.exe gethash /FilePath "powershell.exe C:\AIMTest\psscript.ps1"
01-24-2019 08:53 PM
@Antony Sunny can you try AIMGetAppInfo.exe gethash /FilePath "C:\AIMTest\psscript.ps1"
Curious why powershell.exe is included ?
05-27-2019 11:36 PM
Did any of this work?
If not check if the Provisioning account for the Computer has access to the safe you are referring to. Name will start with Prov_ appended with the name of the computer with the Provider service.
10-23-2019 01:55 AM
I didn't add hash or os information ,you can work in powershell in this command. CCP worked on the server where it was installed. My query is " .\CLIPasswordSDK.exe GetPassword /p AppDescs.AppID=xxx(Qualist-Scan-App-ID)xx /p "Query=Safe=x(Safename)xx;Folder=root;Object=xxxx(Account name)xxxxxx" /o Password" this my query. thank you
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!

