How to run a script that does not require a Database Update in the vault
463
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:54 PM
Objective
Once you receive the script zip file, it will contain either 4 files or 2 files:
- If the zip contains 4 files:
- Script Password (.txt) - Contains the Password required to run the script
- Readme file (.txt) - Contains the instructions to run the script
- .ENC file – This is the actual script that runs on the Vault database. The file name typically follows this pattern: <Date>DBScriptName[<Number>].ENC
- File indicating the script expiration date
- If the zip contains 2 files:
- Instructions.txt – This file includes the script password, the KBA article to follow, and the script expiration date.
- .ENC file – The script to run on the Vault database. Naming follows the pattern:
<Date>DBScriptName[<Number>].ENC
⚠️ Important: Transfer the zip file to the Vault Server and extract the files before proceeding. ⚠️
Since this kind of script is mostly used to print helpful information in the vault database it does NOT require a downtime or shutting down anything before running.
Environment
12.6;14.2;14.4;14.6
Procedure
- Ensure the PrivateArk Database service is running:
- Standalone: Check `
services.msc`. Start the service manually if needed. - HA Cluster:
- Bring the shared disk online using the Disk Management Utility
- Then start the PrivateArk Database service via `
services.msc`.
- Satellite: Check `
services.msc`.
- Standalone: Check `
- Open an elevated Command Prompt
- Navigate to:
{drive}:\Program Files (x86)\PrivateArk\Server Run:CAVaultManager.exe ExecuteDBScript
- Navigate to:
- When prompted:
Password for file decryption ==>Type the script password from the provided `.txt` file.************ - When prompted:
Encrypted input script file path [mandatory] ==>
Provide the full path to the `.ENC` file.- Example:
C:\Temp\202205191720DBScript[122].ENC🔍 *Note:* The number in brackets (e.g., `[122]`) may vary depending on the script you received.
💡 If the path contains no spaces like in this example, quotation marks are not required.
- Example:
- When prompted:
Output results file path [mandatory] ==>
Provide the full path for the output log file.Example:C:\Temp\output.log⚠️ Make sure the output directory is not marked as Read-Only. If reusing an existing output file, it must be writable (not marked Read-Only).
💡If the path contains no spaces like in this example, quotation marks are not required.
If the script runs correctly, you will see a success message in the terminal window:
- Confirm the script result:
- Please share the output file generated by the script with CyberArk Support.