Code templates and examples to work with Cyberark
Stuff for the CPM
Use this to change a password on an appliance or similar using an API. Set it as an imported Target platform that uses CyberArk.TPC.exe as the plugin. I used the UnixSSH platform as the base.
These are Dependent platforms that use the PSUsageProcess.ini and PSUsagePrompts.ini. They only handle a 'changepass' action. Unlike the Target Plaform script, these all use the same Platform PSScript which is then added as a usage to the needed Target platforms.
- PSUsageTestScript.ps1 just makes sure it's working and outputs to a log file
- PSUsageRunTask.ps1 runs a scheduled task (that might have no triggers defined) on the target server
- PSUsageSQLCredential.ps1 Runs a SQL command to push the new password to a SQL Credential
Stuff for the PSM
NOTE: It was only after I wrote and debugged this that I found that there's already a tool on the marketplace. However, it only supports CyberArk 13.x https://cyberark.my.site.com/mplace/s/#a35Ht000000rjXlIAI-a39Ht000001kceVIAQ
Script to download and install the correct ChromeDriver.exe to match the 32-bit chrome installed on the PSM.
instructions originally from https://cyberark.my.site.com/s/article/How-to-update-Chrome-Driver-in-PSM-server