How can we reset the Leapwork Agent password?
How can we reset the Leapwork Agent password?
Introduction
During the installation of the Leapwork agent, you are asked to set an agent password so as to make the agent configuration process more robust and secure.
But a few times you may forget the agent password that is been set at the time of installation of the agent component of the Leapwork.
Reset the Leapwork Agent Password
To handle this scenario, you can try one of the below options:
- Reinstall the Agent component of Leapwork. Set the password for the agent configuration again at the time of installation.
- Open Registry Editor and navigate to the path:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\LEAPWORK.
Under this path, you will find the existing component by the name AgentPassword with the corresponding password value as shown below:
Sometimes, the AgentPassword in the registry editor is visible in an encrypted manner. If so, then the second approach will not work.
In that case, resetting the password is possible only through the re-installation process. But if you are not looking mandatorily for setting the password, then the agent password can be made blank without re-installing the LEAPWORK agent.
Open the services.msc and search for the service by the name LEAPWORK Agent and stop the agent service.
Navigate to the Leapwork agent installation directory
C:\Program Files\LEAPWORK\Agent.Take the backup of agent.config before making any changes to the existing agent.config.
Open agent.config. You will find variable by the name Password with a corresponding value in an encrypted form. Remove the encrypted password value corresponding to the password field as highlighted in the screenshot below:
Save the agent.config file and restart the Leapwork agent service.
Open Leapwork studio and configure the agent.
Keep the password field as blank and test the connection. The connection should get established successfully.
For any clarification, contact our Priority Support.