How to run the Master Password Reset script

How to run the Master Password Reset script

249
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:07 PM


Objective



You will receive the necessary files from Idira Support. 

Once you received the Master Password zip file, it usually contains 2 files in it:

1- Instructions.txt File (Containing Script and Master Password, KBA article to follow  and Date the script will expire)
2- .ENC file, this is the actual script that will run in the Vault database, the name convention is usually <Date>DBScriptName[<Number>].ENC
 

Make sure you transfer the zip file to the Vault Server and extract the files out.

Before running the script we should bring the vault environment down, the script itself usually takes seconds to run but it would require a downtime, consider something like 30 or 60 minutes as a downtime.

Depending the vault environment(Standalone/HA/Satellite), the procedure to shutdown/start PrivateArk Server is different, please see in the below notes.

NOTE: You will need the master key (recprv.key) in the location which the dbparm.ini indicates, in order to login as Master (seen in step 11 below).



Environment


10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6 Privileged Access Manager (PAM, self-hosted) Vault

Procedure



As mentioned before the script updates the Vault database and it's required to stop both DR and Primary Vault.

1) Make a backup of the Metadata folder

{drive}:\PrivateArk\Safes\Metadata

2) Stop the DR Replication

Standalone: Make sure the DR replication is stopped by stopping the service "CyberArk Disaster Recovery Service".

DR HA Cluster: Stop the passive node through Cluster Vault Manager then stop the Active node.

3) Bring the PrivateArk Server down

Standalone: Stop the server through PrivateArk Server Console.

HA Cluster: Stop the passive node through Cluster Vault Manager first to avoid failover to the active node and then stop the Active node.

Satellite: Stop the satellite(s) vaults first through PrivateArk Server Console then stop the Master.

4) Make sure the PrivateArk Database service is running

Standalone: Check services.msc, if not started you can start it manually.

HA Cluster: You will need to bring the shared disk online through Disk Management Utility first and then start the PrivateArk Database service manually through services.msc.

Satellite: Check services.msc

5) Open a command prompt with admin rights from {drive}:\Program Files (x86)\PrivateArk\Server and run the command:

CAVaultManager.exe ExecuteDBScript

1.png

Once you do that, in the command prompt it will go to the next phase asking for:

Password for file decryption ==>

6) Type the script password that is inside the text file provided in the zip.

************


2.png

After this step, you will see a new prompt in the command line:

Encrypted input script file path [mandatory] ==>

7) Provide the full path where the .ENC file is located.

C:\Temp\MasterPassword[122].ENC

In the example below we moved the file to the Temp folder in the C:\ drive.

Please note that the numbers inside the brackets([122]) may change from the script you received.

The path in this example has no spaces, in this case you do not need to wrap with quotation marks(").

3.png

Next prompt in the command line:

Output results file path [mandatory] ==> <Script output log full path>

8) Provide the full path for the output file, in the example below I created an empty file in the Temp folder called output.log.

C:\Temp\output.log

Same thing applies here about the quotation marks from step 6.

This is the last prompt from command line and if the script runs correctly, you should receive the message that run successfully as showing in the screenshot below:

4.png

9) Start the PrivateArk Server

Standalone: Start the server through PrivateArk Server Console

HA Cluster: First stop the PrivateArk Database service through services.msc then bring the shared disk offline, open Cluster Vault Manager and start it, it should bring all services up, make sure to start the passive node as well.

Satellite: Start the Master then start the satellite(s) through PrivateArk Server Console.

10) Start DR Replication

Standalone Vault: Make sure the DR replication is running by starting the service "CyberArk Disaster Recovery Service".

DR HA Cluster: Start the active node then start the passive node.

11) Reset the Master Password

Login in PrivateArk Client with the Master User, the temporary password was provided in the .zip file.

NOTE: You will need the master key (recprv.key) in the location which the dbparm.ini indicates, in order to login as Master. You'll also be using the temp Master Password which was supplied. Login as Master is a two step process. 

Navigate to User > Set Password..

image.png

In the Old Password field type the temporary Master password provided in the zip.

Type the new password and confirm, make sure to setup a strong password for the Master User.

After that just click OK and the Master Password is reset.

image.png



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001QmuCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail