# Wazuh configuration

What we have to do here is, add the agent to the Wazuh server. As you can see in the dashboard there is no any agents at the movement.

{% hint style="info" %}
The Wazuh agent runs on Linux, Windows, macOS, Solaris, AIX, and other operating systems. It can be deployed to laptops, desktops, servers, cloud instances, containers, or virtual machines. The agent helps to protect your system by providing threat prevention, detection, and response capabilities
{% endhint %}

<figure><img src="https://2577361618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNl888Hjdph9qbHHEGkB%2Fuploads%2F1WJdMLNkfm1x99MfX24I%2Fimage.png?alt=media&#x26;token=18cce3c8-fe35-4037-a31d-11c48a639513" alt="" width="563"><figcaption><p>Wazuh Dashboard</p></figcaption></figure>

In order to install the agent click add agent and follow the steps.

In our example we are going to add the windows 10 client to Wazuh. follow the step numbers.

<figure><img src="https://2577361618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNl888Hjdph9qbHHEGkB%2Fuploads%2FEmPjvttjAAVN23qziPd2%2Fimage.png?alt=media&#x26;token=d661be6e-f1e9-432c-abc3-c72a49a73c27" alt="" width="563"><figcaption><p>Wazuh Agent Creation</p></figcaption></figure>

Next, you have to assign a name for the agent. this is optional. I have added a name.

<figure><img src="https://2577361618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNl888Hjdph9qbHHEGkB%2Fuploads%2FXZnxfWw5i94mrqmusgsG%2Fimage.png?alt=media&#x26;token=521aaf78-dac5-4f77-8990-80711d8fa28a" alt="" width="563"><figcaption><p>Wazuh Agnet Name</p></figcaption></figure>

Then you can copy the entire command in the step number 4.

<figure><img src="https://2577361618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNl888Hjdph9qbHHEGkB%2Fuploads%2FDIejsuHqWUJtvvyan9dB%2Fimage.png?alt=media&#x26;token=a50cd10d-848b-4583-b403-4f3c32a1b8f8" alt="" width="563"><figcaption><p>Wazuh Agent Script</p></figcaption></figure>

Once you copy that, go to your windows 10 PC and open **PowerShell** run as administrator and past the command and then press Enter

<figure><img src="https://2577361618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNl888Hjdph9qbHHEGkB%2Fuploads%2FEaF4Bp5LRFVdS8cosPbE%2Fimage.png?alt=media&#x26;token=5b67f226-3195-4184-9e44-f733837a04cb" alt="" width="563"><figcaption><p>Wazuh Agnet script on Win 10 VM</p></figcaption></figure>

<figure><img src="https://2577361618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNl888Hjdph9qbHHEGkB%2Fuploads%2F12zM7avucC1bckzjP3tU%2Fimage.png?alt=media&#x26;token=ae7ba63f-7e21-4b78-bd1d-647c93df1ea5" alt="" width="563"><figcaption><p>Installing the Wazuh Agent</p></figcaption></figure>

after that we can start the Wazuh service. in the same PowerShell window type,

```powershell
net start wazuhsvc
```

<figure><img src="https://2577361618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNl888Hjdph9qbHHEGkB%2Fuploads%2FiKlua8SJYUsRXCXFvGZb%2Fimage.png?alt=media&#x26;token=e9c5d4de-9553-44c5-9590-9aa0920076a4" alt=""><figcaption><p>Wazuh Agent Service Started</p></figcaption></figure>

Now move back to the Wazuh dashboard and check whether you have got the agent reported like below.

<figure><img src="https://2577361618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNl888Hjdph9qbHHEGkB%2Fuploads%2FjTzIUX7mRzz9gFuT55ye%2Fimage.png?alt=media&#x26;token=0b39fb15-607c-4cd2-b8e8-2dec62f83f8b" alt="" width="563"><figcaption><p>Wazuh Agent on Dashboard</p></figcaption></figure>

You can click the home button and go to the home menu.

Once you are there, you can check the security events on your windows 10 client.

<figure><img src="https://2577361618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNl888Hjdph9qbHHEGkB%2Fuploads%2FVHbt9FtOSeBkrPvhsoFs%2Fimage.png?alt=media&#x26;token=c75ac133-b044-46a7-978a-69da47834f07" alt="" width="563"><figcaption><p>Wazuh Security Events</p></figcaption></figure>

<figure><img src="https://2577361618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbNl888Hjdph9qbHHEGkB%2Fuploads%2FcQiQagXcUR9iNts8Z78a%2Fimage.png?alt=media&#x26;token=b1701d1f-0c63-4439-ad62-96a26fee9e12" alt="" width="563"><figcaption><p>Wazuh Security Events Dashboard</p></figcaption></figure>
