Windows
Follow these steps to enroll a Windows endpoint through the Wazuh agent configuration method.
The Wazuh agent installation directory depends on the endpoint architecture:
C:\Program Files (x86)\ossec-agentfor 64-bit systems.C:\Program Files\ossec-agentfor 32-bit systems.
Use an administrator account to edit the Wazuh agent configuration file. For this guide, the examples use the 64-bit installation path:
C:\Program Files (x86)\ossec-agent\ossec.confAdd the Wazuh manager IP address or fully qualified domain name (FQDN) to the
<address>setting in the<client><manager>section. Replace<WAZUH_MANAGER_IP>with the Wazuh manager IP address or FQDN:<client> <manager> <address><WAZUH_MANAGER_IP></address> ... </manager> </client>
This setting allows the Wazuh agent to connect to the Wazuh manager and request a client key automatically.
Note
If you have a Wazuh manager cluster, you can add multiple
<client>sections that point to the worker nodes.(Optional) Add enrollment parameters in the
<client><enrollment>section.<client> ... <enrollment> <agent_name>EXAMPLE_NAME</agent_name> <groups>GROUP1,GROUP2,GROUP3</groups> ... </enrollment> </client>
These agent enrollment parameters are optional, and they provide the Wazuh agent with specific information that should be used during enrollment. Some common enrollment parameters are below:
<agent_name>EXAMPLE_NAME</agent_name>: Specifies the name that the Wazuh agent uses during enrollment. If you do not configure this setting, the Wazuh agent uses the endpoint hostname.<groups>GROUP1,GROUP2,GROUP3</groups>: Specifies the groups that the Wazuh agent joins during enrollment. An agent group is a collection of Wazuh agents that share the same configuration. The Wazuh manager pushes configuration settings to Wazuh agents that belong to the same group. Enrollment fails if you specify a group that doesn't exist. Create the required group on the Wazuh manager before you use the<groups>setting. Additional information on agent groups can be found here.
Restart the Wazuh agent to make the changes effective.
# Restart-Service -Name wazuh# net stop wazuh # net start wazuh
Click on the upper-left menu icon and navigate to Agents management > Summary on the Wazuh dashboard to check for the newly enrolled Wazuh agent and its connection status. If the enrollment was successful, you will have an interface similar to the image below.