Install the Windows Wazuh agent

Run the installer to download, install and self-register the Wazuh agent

  1. Log into your Windows Agent instance via Remote Desktop as Administrator. Remember to use the password you obtained previously.

  2. Click the "Search Windows" icon (magnifying glass in bottom left of screen). Type: "powershell" and right click on Windows PowerShell

  3. Click "Run as administrator"

  4. In PowerShell, change to the Downloads directory with "cd Downloads"

  5. Then download and run the installer with this command line:

    Invoke-WebRequest -Uri -OutFile wazuh-agent.msi; ./wazuh-agent.msi /q WAZUH_MANAGER='' WAZUH_REGISTRATION_SERVER='' WAZUH_REGISTRATION_PASSWORD="please123" WAZUH_AGENT_NAME="windows-agent"

    It should look like this

  6. A black window will pop up briefly and disappear. The Windows agent should now be installed and registered. Close PowerShell.

Create a shortcut to the Wazuh agent Manager tool on the taskbar

(This is only for lab purposes. In production you will rarely open this tool.)

  1. Open File Explorer (Windows-key + E).

  2. Navigate to the C:\Program files(x86)\ossec-agent directory and find the win32ui executable.

  3. Right click the "win32ui" file and select "Pin to the taskbar".

Run the Wazuh agent Manager and confirm it is running and connected to the Wazuh manager

  1. Click on the Wazuh icon on your taskbar. It should look like this:

  2. Click on View->View Logs. You should find record of the agent successfully connecting to the Wazuh manager.

    2019/11/22 12:05:23 ossec-agent: INFO: (4102): Connected to the server (

Observe that Wazuh manager is aware of all the connected agents.

Switch over to your Wazuh Server SSH window and run these commands, looking for your self-registered agents.

[root@wazuh-manager centos]# /var/ossec/bin/agent_control -l

Wazuh agent_control. List of available agents:
   ID: 000, Name: wazuh-manager (server), IP:, Active/Local
   ID: 001, Name: linux-agent, IP:, Active
   ID: 002, Name: elastic-server, IP:, Active
   ID: 003, Name: windows-agent, IP:, Active

List of agentless devices:
[root@wazuh-manager centos]# grep "agent connected"  /var/ossec/logs/alerts/alerts.log -B1 -A1
2019 Nov 22 11:41:35 (linux-agent)>ossec
Rule: 501 (level 3) -> 'New ossec agent connected.'
ossec: Agent started: 'linux-agent->'.
2019 Nov 22 11:48:26 (elastic-server)>ossec
Rule: 501 (level 3) -> 'New ossec agent connected.'
ossec: Agent started: 'elastic-server->'.
2019 Nov 22 12:05:23 (windows-agent)>ossec
Rule: 501 (level 3) -> 'New ossec agent connected.'
ossec: Agent started: 'windows-agent->'.