Force uninstall or reinstall of Wazuh Agent on Windows?

306 views
Skip to first unread message

John Doe

unread,
Feb 13, 2025, 7:11:28 AM2/13/25
to Wazuh | Mailing List
Hello

Im having issues installing Wazuh Agent on Windows because its trying to do a "upgrade" when it isnt possible.

How do you fix all this mess? Is there a force?

Thank you
Message has been deleted

hasitha.u...@wazuh.com

unread,
Feb 13, 2025, 7:49:58 AM2/13/25
to Wazuh | Mailing List
Hi  John,

Could you please check in Control Panel -> Uninstall a program -> If the agent is installed, you will find it as Wazuh Agent.
If it exists please click Wazuh Agent and click Uninstall on top.
Then follow the uninstall process using the GUI option.

It is recommended to completely uninstall any previously installed Wazuh agent to avoid potential database conflicts. To uninstall the agent, you will need the original Windows installer file. Use the following command for an unattended process:
msiexec.exe /x wazuh-agent-4.9.0-1.msi /qn

This will completely remove the Wazuh agent from your Windows endpoint.
Refer to the official documentation for more details:
Uninstalling a Windows Wazuh Agent

If it's missing from the list, delete the installation folder manually:
Open Powershell as administrator and run this command to remove all files.
Remove-Item -Recurse -Force "C:\Program Files (x86)\ossec-agent"

Then you can reinstall the Wazuh agent by following this document.
https://documentation.wazuh.com/current/installation-guide/wazuh-agent/wazuh-agent-package-windows.html

Agents should be the same version as the Wazuh manager or an older version.
You can check your Wazuh manager version by running this command.
/var/ossec/bin/wazuh-control info

Let me know the update on this.

Regards,
Hasitha Upekshitha
Reply all
Reply to author
Forward
0 new messages