> For the complete documentation index, see [llms.txt](https://fossoc.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fossoc.gitbook.io/documentation/wazuh-agent-windows/setup.md).

# Setup

The Wazuh agent is multi-platform and runs on the endpoints that the user wants to monitor. It communicates with the Wazuh server, sending data in near real-time through an encrypted and authenticated channel.

## Installing Wazuh agent on Windows

Once we are logged in to the Wazuh dashboard, we should see something like this:

<figure><img src="https://1088759916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLNzD73pEJC4U94NEAs4j%2Fuploads%2FlBGy6pDBBWSTw6pASrrk%2F3.png?alt=media&amp;token=e84af04b-18d9-4fa0-ad27-fe8b0aeda7d0" alt=""><figcaption></figcaption></figure>

Click on the `Add agent` option in order to obtain the necessary commands.

<figure><img src="https://1088759916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLNzD73pEJC4U94NEAs4j%2Fuploads%2F9bsj9S1liOhaVNrN5fjq%2F4.png?alt=media&amp;token=91c041a0-8240-41df-8ffd-a3e4a522c0e9" alt=""><figcaption></figcaption></figure>

We can fill in all the relevant information in this form.

### PowerShell command

{% code overflow="wrap" lineNumbers="true" %}

```powershell
Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-4.6.0-1.msi -OutFile ${env.tmp}\wazuh-agent; msiexec.exe /i ${env.tmp}\wazuh-agent /q WAZUH_MANAGER='(Wazuh manager IP address)' WAZUH_AGENT_NAME='(Agent name)' WAZUH_REGISTRATION_SERVER='(Wazuh manager IP address)'
```

{% endcode %}

Note that from the above command the `(Wazuh manager IP address)` and `(Agent name)` will be the actual IP address and Agent name that we have set.

### Start the Wazuh agent

{% code overflow="wrap" lineNumbers="true" %}

```
NET START WazuhSvc
```

{% endcode %}
