Windows Server monitoring: baselines, events and alerts

“Is the server slow, or is it always like this?” You can only answer that if you measured it earlier. Windows Server monitoring is about collecting the right counters and events, knowing what normal looks like for each server, and hearing about problems before your users do.

You’ll read live performance counters, build a baseline with a data collector set, and use Windows Event Forwarding to send error events from every server to one collector. To finish, you’ll turn an event into a simple alert.

TimeYou needBy the end you can
About 90 minutesDC01, DC02 and SRV01Read key performance counters, create and analyse a baseline, set up Windows Event Forwarding, build event-triggered alerts and avoid alert fatigue

What it is, in one line

Windows Server monitoring means watching a server’s performance counters, event logs and services over time, comparing them against a known baseline, and raising an alert when something drifts or breaks.

In Simple Words

A doctor’s check-up chart

A good doctor writes down your normal temperature, pulse and blood pressure while you’re healthy, so when you come in feeling ill she can compare today’s numbers with that chart and see what’s changed. A baseline is that chart for a server, showing its normal CPU, memory, disk and network use, while the event logs are like the patient’s diary and alerts are the alarm on the hospital monitor. If that monitor beeps every minute for no reason, the nurses stop listening to it. That’s alert fatigue, and it’s as dangerous as having no monitoring at all.

Engineer's View

Counters, baselines, WEF and alerts

Key counters: for CPU, Processor(_Total)\% Processor Time and Processor Queue Length; for memory, Memory\Available MBytes and Pages/sec; for disk, Avg. Disk sec/Read and /Write (anything over 20 ms is slow for most workloads), Current Disk Queue Length and % Free Space; and for network, Bytes Total/sec and errors. You can read them with Get-Counter, Performance Monitor or Windows Admin Center.

Baselines: a data collector set (built in Performance Monitor or with logman) records counters into a .blg file at a fixed interval. Collect across normal business cycles, hang on to the files, and during an incident compare against them with relog or PowerShell.

Events: Windows Event Forwarding (WEF) sends the events you choose from lots of servers into a collector’s ForwardedEvents log over WinRM, using subscriptions that Group Policy sets up (source-initiated). A SIEM or Azure Monitor can then pick them up from there.

Alerts: you can use event-triggered scheduled tasks, Performance Monitor alerts or a proper monitoring tool (Azure Monitor with Arc, System Center Operations Manager, Zabbix, PRTG). Alert on symptoms users can feel and on things that are about to break, and leave the ordinary warnings alone.

How it works, step by step

Here’s how events from many servers end up in one place:

Windows Server monitoring: Windows Event Forwarding from DCs to the SRV01 collector

Each source server reads the subscription from Group Policy, connects to the collector over WinRM (port 5985) and pushes matching events as they happen, so you read one log instead of signing in to every server.

This is what you’ll set up in the lab:

Windows Server monitoring counters: CPU, memory, disk and network to check first
  1. Live counters on SRV01 with Get-Counter.
  2. Baseline: a data collector set, SRV01-Baseline, sampling every 15 seconds into a circular file.
  3. WEF: SRV01 as collector, DC01 and DC02 as sources, forwarding errors and critical events from System and Application.
  4. Alert: a scheduled task that writes an alert line when a specific event appears.

Hands-on Lab: Windows Server monitoring for the lab servers

Before you run any command, double-check it

Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.

Start DC01, DC02 and SRV01. Unless a step tells you otherwise, work on SRV01 as SAATLAB\adm.rahul in PowerShell as administrator.

1Read live performance counters

On SRV01:

$counters = '\Processor(_Total)\% Processor Time', '\Memory\Available MBytes', '\LogicalDisk(C:)\% Free Space', '\PhysicalDisk(_Total)\Avg. Disk sec/Read'
Get-Counter -Counter $counters -SampleInterval 2 -MaxSamples 1 | Select-Object -ExpandProperty CounterSamples | Select-Object Path, @{n='Value';e={[math]::Round($_.CookedValue,3)}}

You should see something like this:

Path                                             Value
----                                             -----
\\srv01\processor(_total)\% processor time       4.127
\\srv01\memory\available mbytes                    812
\\srv01\logicaldisk(c:)\% free space            61.834
\\srv01\physicaldisk(_total)\avg. disk sec/read  0.002

Avg. Disk sec/Read is measured in seconds, so 0.002 means 2 ms, which is fast. A single sample on its own doesn’t tell you much, though.

Is 812 MB of free memory normal for SRV01? You can’t know without a baseline.

✅ Checkpoint: Get-Counter returns four values for SRV01.

2Record a baseline with a data collector set

On SRV01:

logman create counter SRV01-Baseline -c "\Processor(_Total)\% Processor Time" "\System\Processor Queue Length" "\Memory\Available MBytes" "\Memory\Pages/sec" "\PhysicalDisk(_Total)\Avg. Disk sec/Transfer" "\PhysicalDisk(_Total)\Current Disk Queue Length" "\Network Interface(*)\Bytes Total/sec" -si 00:00:15 -o C:\PerfLogs\SRV01-Baseline -f bincirc -max 200
logman start SRV01-Baseline
logman query SRV01-Baseline | Select-String 'Status|Output Location|Sample Interval'

You should see something like this:

The command completed successfully.
The command completed successfully.
Status:               Running
Output Location:      C:\PerfLogs\SRV01-Baseline_000001.blg
Sample Interval:      15 second(s)

-f bincirc -max 200 writes a circular binary file that never grows past 200 MB, so the baseline can run for weeks without filling the disk. Leave it running while you work through the rest of the lesson, and then analyse it:

Later, on SRV01:

logman stop SRV01-Baseline
relog C:\PerfLogs\SRV01-Baseline_000001.blg -f csv -o C:\PerfLogs\baseline.csv -y | Out-Null
$rows = Import-Csv C:\PerfLogs\baseline.csv
$cpu = ($rows | Select-Object -ExpandProperty ($rows[0].PSObject.Properties.Name | Where-Object { $_ -like '*Processor Time' })) | Where-Object { $_.Trim() } | ForEach-Object { [double]$_ }
'CPU average {0:N1}%, max {1:N1}% over {2} samples' -f ($cpu | Measure-Object -Average).Average, ($cpu | Measure-Object -Maximum).Maximum, $cpu.Count
logman start SRV01-Baseline

You should see something like this:

CPU average 3.8%, max 41.2% over 240 samples

✅ Checkpoint: SRV01-Baseline is collecting every 15 seconds and you calculated SRV01’s average and peak CPU from it.

3Make SRV01 an event collector

On SRV01, set up the collector service and create a subscription for errors:

wecutil qc /q
@'
<Subscription xmlns="http://schemas.microsoft.com/2006/03/windows/events/subscription">
  <SubscriptionId>Server-Errors</SubscriptionId>
  <SubscriptionType>SourceInitiated</SubscriptionType>
  <Description>Critical and error events from servers and DCs</Description>
  <Enabled>true</Enabled>
  <Uri>http://schemas.microsoft.com/wbem/wsman/1/windows/EventLog</Uri>
  <ConfigurationMode>Normal</ConfigurationMode>
  <Query><![CDATA[<QueryList><Query Id="0"><Select Path="System">*[System[(Level=1 or Level=2)]]</Select><Select Path="Application">*[System[(Level=1 or Level=2)]]</Select></Query></QueryList>]]></Query>
  <ReadExistingEvents>false</ReadExistingEvents>
  <TransportName>HTTP</TransportName>
  <ContentFormat>RenderedText</ContentFormat>
  <LogFile>ForwardedEvents</LogFile>
  <AllowedSourceDomainComputers>O:NSG:BAD:P(A;;GA;;;DC)(A;;GA;;;DD)S:</AllowedSourceDomainComputers>
</Subscription>
'@ | Set-Content C:\Scripts\Server-Errors.xml
wecutil cs C:\Scripts\Server-Errors.xml
wecutil gs Server-Errors | Select-String 'SubscriptionType|Enabled|AllowedSourceDomainComputers'

You should see something like this:

SubscriptionType: SourceInitiated
Enabled: true
AllowedSourceDomainComputers: O:NSG:BAD:P(A;;GA;;;DC)(A;;GA;;;DD)S:

The SDDL lets Domain Computers (DC) and Domain Controllers (DD) send events, and in the query Level 1 is Critical and 2 is Error. Source-initiated means each server finds the collector through Group Policy, so new servers sign up without you doing anything.

✅ Checkpoint: The Server-Errors subscription exists on SRV01 and is enabled.

4Point the DCs at the collector with Group Policy

On DC01:

New-GPO -Name 'C-Event-Forwarding' | New-GPLink -Target 'OU=Domain Controllers,DC=saatlab,DC=internal' | Out-Null
Set-GPRegistryValue -Name 'C-Event-Forwarding' -Key 'HKLM\Software\Policies\Microsoft\Windows\EventLog\EventForwarding\SubscriptionManager' -ValueName 1 -Type String -Value 'Server=http://SRV01.saatlab.internal:5985/wsman/SubscriptionManager/WEC,Refresh=60' | Out-Null
Invoke-Command -ComputerName DC01, DC02 -ScriptBlock { gpupdate /force | Out-Null }

That’s the setting Computer Configuration, Administrative Templates, Windows Components, Event Forwarding, Configure target Subscription Manager. To bring in member servers too, link the same GPO to the Servers OU.

Create a test error on DC02 and then look at the collector:

Invoke-Command -ComputerName DC02 -ScriptBlock { eventcreate /T ERROR /ID 999 /L APPLICATION /SO SaatLabTest /D "Test error for event forwarding" }
Start-Sleep -Seconds 90
wecutil gr Server-Errors | Select-String 'saatlab.internal|RunTimeStatus'
Get-WinEvent -LogName ForwardedEvents -MaxEvents 1 | Select-Object MachineName, Id, ProviderName, Message

You should see something like this:

        DC01.saatlab.internal
            RunTimeStatus: Active
        DC02.saatlab.internal
            RunTimeStatus: Active

MachineName           Id ProviderName Message
-----------           -- ------------ -------
DC02.saatlab.internal 999 SaatLabTest  Test error for event forwarding

✅ Checkpoint: Both DCs show Active in the subscription, and DC02’s test error is in SRV01’s ForwardedEvents log.

Windows Server monitoring lab: both DCs active and a forwarded test error on SRV01
Both DCs are forwarding to SRV01, and DC02’s test error has turned up.

5Turn an event into an alert

On SRV01, create a task that runs whenever a forwarded event 999 comes in:

$q = "<QueryList><Query Id='0' Path='ForwardedEvents'><Select Path='ForwardedEvents'>*[System[EventID=999]]</Select></Query></QueryList>"
$action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument "-NoProfile -Command Add-Content C:\Scripts\alerts.log ('{0} ALERT event 999 received' -f (Get-Date))"
$trigger = New-CimInstance -CimClass (Get-CimClass -Namespace ROOT\Microsoft\Windows\TaskScheduler -ClassName MSFT_TaskEventTrigger) -ClientOnly -Property @{ Enabled = $true; Subscription = $q }
Register-ScheduledTask -TaskName 'Alert on event 999' -Action $action -Trigger $trigger -User SYSTEM | Out-Null
Invoke-Command -ComputerName DC02 -ScriptBlock { eventcreate /T ERROR /ID 999 /L APPLICATION /SO SaatLabTest /D "Second test" }
Start-Sleep -Seconds 90; Get-Content C:\Scripts\alerts.log

You should see something like this:

20/10/2026 02:14:37 ALERT event 999 received

At work the action would send an email, post to Teams or open a ticket. Choose a handful of events that truly matter, like a failed backup, a cluster node leaving or a disk filling up, instead of firing on every error.

✅ Checkpoint: The second test event reached SRV01 and the task wrote an alert line to C:\Scripts\alerts.log.

Break It, Then Fix It

Monitoring tends to fail silently, and here are two ways it stops without warning you.

1Break it: a typo in the subscription manager address

On DC01, set the GPO value with a typo in the collector name, then refresh DC02:

Set-GPRegistryValue -Name 'C-Event-Forwarding' -Key 'HKLM\Software\Policies\Microsoft\Windows\EventLog\EventForwarding\SubscriptionManager' -ValueName 1 -Type String -Value 'Server=http://SRV10.saatlab.internal:5985/wsman/SubscriptionManager/WEC,Refresh=60' | Out-Null
Invoke-Command -ComputerName DC02 -ScriptBlock { gpupdate /force | Out-Null; Restart-Service WinRM }

Wait a few minutes and check the forwarding log on the source, DC02:

Invoke-Command -ComputerName DC02 -ScriptBlock {
    Get-WinEvent -LogName 'Microsoft-Windows-Forwarding/Operational' -MaxEvents 1 | Select-Object Id, LevelDisplayName, Message
} | Format-List

You’ll see something like this:

Id               : 105
LevelDisplayName : Error
Message          : The forwarder is having a problem communicating with subscription manager at address
                   http://SRV10.saatlab.internal:5985/wsman/SubscriptionManager/WEC. Error code is 2150859193 and Error
                   Message is The WinRM client cannot process the request because the server name cannot be resolved.

Nothing looks wrong on the collector; events from DC02 just stop arriving, and only the source’s Forwarding log tells you why. One wrong character in a GPO can blind your monitoring for every server that GPO applies to.

To fix it, correct the address and refresh:

Set-GPRegistryValue -Name 'C-Event-Forwarding' -Key 'HKLM\Software\Policies\Microsoft\Windows\EventLog\EventForwarding\SubscriptionManager' -ValueName 1 -Type String -Value 'Server=http://SRV01.saatlab.internal:5985/wsman/SubscriptionManager/WEC,Refresh=60' | Out-Null
Invoke-Command -ComputerName DC02 -ScriptBlock { gpupdate /force | Out-Null }

✅ Checkpoint: DC02 logged event 105 with the typo and shows Active in wecutil gr Server-Errors after the fix.

Windows Server monitoring lab: forwarding error 105 from a wrong collector address
A one-letter typo in the collector name stops forwarding, and only the source’s log tells you why.

2Break it: a baseline that stops after a restart

Restart SRV01, sign in and check on the data collector set:

logman query SRV01-Baseline | Select-String 'Status'

You’ll see this:

Status:               Stopped

A data collector set you started by hand won’t start again after a reboot. So after the next patch night your baseline quietly ends, and when you go looking for last week’s data, there isn’t any.

To fix it, have a scheduled task start it at boot:

$a = New-ScheduledTaskAction -Execute 'logman.exe' -Argument 'start SRV01-Baseline'
$t = New-ScheduledTaskTrigger -AtStartup
Register-ScheduledTask -TaskName 'Start SRV01 baseline' -Action $a -Trigger $t -User SYSTEM -RunLevel Highest | Out-Null
Restart-Computer

After the restart:

logman query SRV01-Baseline | Select-String 'Status'

You should see this:

Status:               Running

✅ Checkpoint: The collector was Stopped after a restart, and Running after adding the startup task.

This happened at work

3,000 emails and one that mattered

At one hosting company, the monitoring system sent an email for every warning on every server: service restarts, a disk being slow for a second, certificate notices, backup retries. About 3,000 alerts a day landed in the shared inbox, and the team had set up a rule that filed them all away. Somewhere in that pile was an email saying a RAID array on a database server was degraded, and it sat there unread for nine days until a second disk in the same array failed and the database was lost.

Restoring from backup took fourteen hours. When they reviewed it afterwards, the warning had gone out correctly and on time; the trouble was the other 2,999 emails surrounding it.

The fix: alerts were split into “act now” (paging, only a few a week) and “review daily” (a dashboard), duplicates were removed, every alert was given an owner and a runbook, and hardware health alerts went straight into “act now”.

The lesson: monitoring that alerts on everything is really alerting on nothing, because people only act on alerts that are few and meaningful.

Common mistakes and troubleshooting

Mistake or symptomWhat happensWhat to do instead
No baselineYou can’t tell slow from normalCollect counters over normal weeks and keep them
Data collector set not restarted after rebootThe baseline silently stopsStart it at boot with a task or schedule
Collector files without size limitsLogs fill the diskCircular files with a maximum size
WEF subscription manager typoSources stop forwarding quietlyCheck Forwarding/Operational on sources; wecutil gr on the collector
Alerting on every warningAlert fatigue; real problems ignoredFew actionable alerts with owners and runbooks
Only CPU and memory watchedDisk latency and free space problems missedWatch disk latency, queue and free space too
Monitoring the monitor isn’t doneThe monitoring server fails unnoticedHeartbeat checks from a second system
Reading events server by serverSlow incident responseForward to a collector or SIEM
One-off Get-Counter checks during incidentsNo comparison pointCompare with the stored baseline

Interview questions

Click a question to open it. Each one is worded the way an interviewer would ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.

Fresher level

1. A user says a server feels slow. Which performance counters would you look at first?

Why they ask this: They want to see you check all four main areas (CPU, memory, disk and network) instead of guessing.

How you might answer: For CPU I’d check % Processor Time and the processor queue length, and for memory Available MBytes and Pages/sec. On disk I’d look at Avg. Disk sec/Read, Avg. Disk sec/Write and the disk queue length, and on the network Bytes Total/sec. Between them that usually shows me which area is struggling.

2. Can you explain in simple words what a performance baseline is?

Why they ask this: They’re checking that you know why you need to understand normal before you judge a problem.

How you might answer: A baseline is a record of how a server normally performs over time, and when something seems off I compare today’s numbers with it. For example, 70 percent CPU could be perfectly normal for one server and a real problem on another, and the baseline tells me which it is.

3. Where would you look for errors on a Windows server?

Why they ask this: Most troubleshooting starts in the event logs, so they want to know you’re comfortable there.

How you might answer: I’d start in Event Viewer with the System, Application and Security logs, and for a particular role I’d also check its own log under Applications and Services Logs. From PowerShell I use Get-WinEvent, which is handy for filtering or checking several servers at once.

2–5 years experience

4. Walk me through how you’d set up Windows Event Forwarding.

Why they ask this: They want to find out whether you’ve really configured WEF, both the collector and the client side.

How you might answer: On the collector I run the Windows Event Collector service and create subscriptions that say which events I want, and the source servers get the subscription manager address through Group Policy. The sources then push matching events over WinRM and they land in the collector’s ForwardedEvents log.

5. You see average disk latency of 35 ms on a file server. Is that a problem?

Why they ask this: They want to know you have a feel for thresholds and check them against the baseline.

How you might answer: For general workloads, averages that stay above about 20 ms for reads or writes usually mean trouble, and databases need less than that, so 35 ms is worth a look. I’d still compare it with the baseline and with the storage system’s own metrics before blaming the storage.

6. You set up a data collector set to record performance for months. How do you make sure it doesn’t quietly stop?

Why they ask this: They want to see that you think about silent failures and not only about creating the collector.

How you might answer: I’d use circular logs with a size limit so it can never fill the disk, and make it start at boot, either through a scheduled task or the set’s own schedule. Then I’d add its status to my daily report so I’d notice if it stopped.

Senior level

7. Say you join a team with 200 Windows servers and almost no monitoring. What would you build?

Why they ask this: They want to see you think in layers and focus on alerts people can act on.

How you might answer: I’d bring in a central tool like Azure Monitor with Arc or SCOM for metrics and availability, send events through WEF or agents into a SIEM, and build baselines for each server role. Then I’d set up a small number of actionable alerts, each with a runbook, plus dashboards for trends, and I’d monitor the monitoring too so we know when it breaks.

8. Your on-call team gets hundreds of alerts a week and has started ignoring them. How would you fix that?

Why they ask this: They want to see that you care about alert quality and about the people on the receiving end.

How you might answer: I’d only alert on things that affect users or on failures that are about to happen, with thresholds taken from baselines. I’d remove duplicates, group related alerts and send each one to the right owner based on urgency. Every week I’d go through the noisiest alerts, and I’d insist on a runbook for each one, because if nobody can write a runbook, the alert probably shouldn’t exist.

9. The security team asks which events you’d forward from your domain controllers. What would you suggest?

Why they ask this: They want to see you connect monitoring with security and know which event IDs matter.

How you might answer: I’d forward logon failures and lockouts (4625, 4771 and 4740), privileged group changes (4728, 4732 and 4756) and new accounts (4720). I’d also send 4769 service tickets using RC4, which can point to Kerberoasting, along with audit policy changes (4719) and log clearing (1102).

Quick quiz

Q1. Avg. Disk sec/Read shows 0.025. What does that mean?

  1. 2.5 ms
  2. 25 ms, which is slow for many workloads
  3. 25 seconds
Show answer

B — The counter is in seconds.

Q2. What does -f bincirc -max 200 do for a data collector set?

  1. Compresses data
  2. Keeps a circular file of at most 200 MB
  3. Samples every 200 seconds
Show answer

B — It can run for weeks safely.

Q3. Where did the WEF typo show up?

  1. On the collector
  2. In the source’s Forwarding/Operational log
  3. Nowhere
Show answer

B — Check sources when events stop.

Q4. Why was the baseline Stopped after a restart?

  1. It crashed
  2. Manually started sets don’t restart at boot
  3. The disk was full
Show answer

B — Start it with a startup task.

Q5. In the work story, why was the RAID warning missed?

  1. Monitoring was off
  2. It was buried among 3,000 daily alerts
  3. The email bounced
Show answer

B — Fewer, meaningful alerts get acted on.

Quick recap

  • Windows Server monitoring brings counters, events and alerts together and compares them with a baseline.
  • Watch CPU, memory, disk latency, free space and network, and use Get-Counter to read them live.
  • Record baselines with logman data collector sets in circular files, and start them at boot.
  • Windows Event Forwarding collects events from many servers into ForwardedEvents.
  • Turn important events into alerts with event-triggered tasks or a monitoring tool.
  • Avoid alert fatigue by keeping a few actionable alerts, each with an owner.

Next lesson

Lesson 40: Modern management → Next you’ll install Windows Admin Center, manage SRV01 and the cluster from a browser, and look at Azure Arc, hotpatching and pay-as-you-go licensing for Server 2025.

Further reading: Windows Server monitoring

Want to go deeper into Windows Server monitoring? Microsoft’s Windows Event Forwarding guide explains subscriptions in depth, and the logman command reference covers data collector sets. You can also see the full plan for this course on the Windows Server Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.