- 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.
12-26-2018 06:14 AM
I copy script for pacli from this link https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/PACLI-Overview.htm?Highlight=pacli#h2-item-2
But it does not work. Errors you can see on this screanshots
Screanshot of script
Vault user Vajda is exist and have access to safe Golf, Vault name is "Vajda", it's you can see this screanshot:
Screanshot of vault.ini file (ip and port is correct)
12-26-2018 11:55 PM
I would recommend you to always try with PowerShell. Also, do a "type vault.ini" to check if there are invisible characters around. Encoding is a b****.
Hope this helps.
Workaround would be to use:
DEFINE VAULT=vault ADDRESS=address
instead of the DEFINEFROMFILE.
12-26-2018 05:00 PM
Looks like there is space in the vault.ini file
can you try this
VAULT="DemoVault"
ADDRESS=192.168.0.71
Hope it helps.
12-26-2018 11:37 PM
It is does not help, i try to enter combination
VAULT="DemoVault"
VAULT = "DemoVault"
VAULT="Demo Vault"
VAULT = "Demo Vault"
VAULT=DemoVault
VAULT = DemoVault
VAULT=Demo Vault
VAULT = Demo Vault
in vault.ini file and in script but error is same with previous
12-26-2018 11:55 PM
I would recommend you to always try with PowerShell. Also, do a "type vault.ini" to check if there are invisible characters around. Encoding is a b****.
Hope this helps.
Workaround would be to use:
DEFINE VAULT=vault ADDRESS=address
instead of the DEFINEFROMFILE.
12-26-2018 11:55 PM
Also, check the requirements are all okay.
12-27-2018 01:46 AM
Sorry, but it does not help too, i have new error "Error: parse error, expecting `__PACLI_STRING'"
vault.ini file hasn't any invisible characters, you can see this on this screanshot:
And sreanshot of script code
12-27-2018 02:31 AM
You are using VAULT with different names. Unify that name. Quotate every parameter just to make sure. And also, if you want my opinion. Use the DEFAULT FUNCTION to set your VAULT and USER parameters only once.
Btw, what I meant about Powershell was that you made a new script for powershell (ps1 format).
can you try
PACLI INIT
PACLI DEFINE VAULT="Demo Vault" ADDRESS="192.168.0.71"
PACLI DEFAULT VAULT="Demo Vault" USER="vajda"
PACLI LOGON
PACLI OPENSAFE SAFE="Golf"
PACLI
12-27-2018 02:48 AM
OOOOH, thank you so much. It is work!
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!

