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 /qnThis will completely remove the Wazuh agent from your Windows endpoint.
Refer to the official documentation for more details:
Uninstalling a Windows Wazuh AgentIf 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.htmlAgents 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