# Microsoft Windows

Windows host EPS depends heavily on the number of windows events logs generated. Run the below powershell script (as Admin) on a heavily used host such as a domain controller to get a rough idea of activity

```powershell
# Define the time window: last 24 hours
$startTime = (Get-Date).AddHours(-24)

# Define log names
$logs = @("Application", "System", "Security")
$total = 0

foreach ($log in $logs) {
    try {
        # Use FilterHashtable with both LogName and StartTime
        $filter = @{
            LogName = $log
            StartTime = $startTime
        }

        $events = Get-WinEvent -FilterHashtable $filter -ErrorAction Stop
        $count = ($events | Measure-Object).Count
        $total += $count

        Write-Output "$log : $count"
    } catch {
        Write-Output "$log : Error - $($_.Exception.Message)"
    }
}
Write-Output "`nTotal : $total"
```


:::tip
We recommend onboarding only servers

:::

## Servers to take into account

* Domain Controllers 
* File Servers
* Critical Servers
* App Servers

Run the above script on all your servers and sum up all the EPS value to get an idea how much they’re expected to send. 


---


:::info
tags:

* Windows Logs
* EPS Windows

:::

---

**Documents**

- [Logs and Architecture](https://outline.cybersift.io/s/sentio-siem/doc/logs-and-architecture-acvUiDgvI5)
- [Sentio](https://outline.cybersift.io/s/sentio-siem/doc/sentio-KuYAbF5grr)
- [ISO27001:2022](https://outline.cybersift.io/s/sentio-siem/doc/iso270012022-7S5IzvF6a0)
- [FAQ](https://outline.cybersift.io/s/sentio-siem/doc/faq-vVyRNyNb60)