Windows Server troubleshooting: the diagnostic workflow

Welcome to Phase 4. So far you’ve been building things, and from here on you’ll be fixing them. Good Windows Server troubleshooting begins with a method instead of a guess.

You’ll learn a six-step workflow that copes with nearly any problem and write a small “what changed?” script. Then you’ll put the method to work on three broken lab scenarios and finish with a short incident report.

TimeYou needBy the end you can
About 90 minutesDC01, SRV01 (with the IIS intranet from Lesson 25) and CL01Follow a repeatable workflow, find recent changes from event logs, and write an incident report

What it is, in one line

Windows Server troubleshooting is a process you can repeat every time: define the problem, narrow it down, find out what changed, test one idea at a time, fix it, check the fix and write it all down.

In Simple Words

In Simple Words

Think about a good doctor. When a patient walks in saying “I feel bad”, she doesn’t reach for the pills straight away. First she asks where it hurts, since when, and whether you’ve eaten anything new, then she checks your temperature and your blood pressure, and only after all that does she give you medicine and ask you to come back so she can see if it worked. Fixing a server works the same way: ask clear questions, look at the evidence, change one thing and check the patient really is better.

Engineer's View

Engineer’s View

Define: write down the exact error text, when it started, who’s affected and what they were doing at the time. “The intranet is down” is only a symptom, whereas “CL01 gets ‘remote name could not be resolved’ for intranet.saatlab.internal since 10:40” is a proper problem statement.

Scope: is it one user or everyone? One site, one server, one protocol? Does the IP work when the name doesn’t? The answers tell you which layer to look at, whether that’s name resolution, the network, a service, permissions or the application itself.

What changed: most outages come straight after a change. Look in the System log (service start type 7040, new service 7045, restarts 1074, unexpected shutdowns 41 and 6008), the Setup log for updates, MsiInstaller events, DNS audit events, Group Policy changes and the change calendar.

Test: form a hypothesis and run the cheapest test that could prove it wrong. Change only one thing at a time so you know what fixed it, and note every change so you can undo it.

Fix and verify: check from the user’s side and not only from the server. Then decide whether you’ve found the root cause or only a workaround that needs a follow-up.

Document: the timeline, the cause, the fix and how to prevent it. Good notes turn one incident into a check that catches the next one.

How it works, step by step

Here’s the six-step diagnostic workflow:

Windows Server troubleshooting workflow: define, scope, what changed, test, fix and verify, document

The steps look obvious, but under pressure people skip them: they restart the server first, then try two other things, and afterwards nobody knows what fixed it or whether it’ll happen again. Two habits make the biggest difference. Scope the problem before you fix anything, and always ask “what changed recently?”, because a short script that lists recent changes saves a lot of guessing.

Keep in mind that one symptom can come from very different causes. In the lab, “the intranet is down” turns out to have two completely different causes, and the method finds each of them quickly.

Where to look first, depending on what the scope tells you:

Windows Server troubleshooting: where to look first by name, port and restart symptoms

This is how you’ll practise the full workflow in the lab:

  • Build a Get-RecentChange function that lists recent changes from the event logs.
  • Scenario 1: the intranet name doesn’t resolve.
  • Scenario 2: the intranet still fails, but for a different reason.
  • Scenario 3: SRV01 restarted during the day. Who did it, and why?
  • Write a short incident report.

Hands-on lab: three broken scenarios

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, SRV01 and CL01, and take a snapshot of SRV01 called “Before troubleshooting”. Work as SAATLAB\adm.rahul in PowerShell as administrator.

In each scenario you break things yourself first, and then act as if the ticket has just landed on your desk.

1Build a “what changed?” function

On SRV01, save this as C:\Lab\Get-RecentChange.ps1 and load it:

function Get-RecentChange {
    param([int]$Hours = 24)
    $start = (Get-Date).AddHours(-$Hours)
    $filters = @(
        @{ LogName = 'System';      Id = 41, 104, 1074, 6005, 6006, 6008, 7040, 7045; StartTime = $start },
        @{ LogName = 'Setup';       Id = 2;                                          StartTime = $start },
        @{ LogName = 'Application'; ProviderName = 'MsiInstaller'; Id = 1033, 11707, 11724; StartTime = $start }
    )
    $events = foreach ($f in $filters) {
        Get-WinEvent -FilterHashtable $f -ErrorAction SilentlyContinue
    }
    $events | Sort-Object TimeCreated -Descending |
        Select-Object TimeCreated, Id,
            @{ n = 'Message'; e = { ($_.Message -split "\r?\n")[0] } }
}

. C:\Lab\Get-RecentChange.ps1
Get-RecentChange -Hours 24 | Format-Table -Wrap

You’ll see something like this:

TimeCreated          Id Message
-----------          -- -------
19/10/2026 09:02:11 6005 The Event log service was started.
19/10/2026 09:02:11 6006 The Event log service was stopped.

Each ID answers one question: 7040 means someone changed a service’s start type, 7045 means a new service was installed, 1074 is a planned restart (with who and why), 41 and 6008 mean a dirty shutdown, and 104 means a log was cleared. Setup event 2 is an installed update, and MsiInstaller events are software being installed or removed.

✅ Checkpoint: Get-RecentChange runs and lists recent events (or nothing yet) without errors.

2Scenario 1: “The intranet is down”

Cause it: on DC01, delete the A record for the intranet:

Remove-DnsServerResourceRecord -ZoneName saatlab.internal -Name intranet -RRType A -Force

Define: on CL01, reproduce what the user is seeing:

Clear-DnsClientCache
Invoke-WebRequest https://intranet.saatlab.internal -UseDefaultCredentials -UseBasicParsing

You’ll see something like this:

Invoke-WebRequest : The remote name could not be resolved: 'intranet.saatlab.internal'

Scope: does the server answer on its IP? Does the name exist at all?

Test-NetConnection 10.0.0.20 -Port 443 | Select-Object RemoteAddress, TcpTestSucceeded
Resolve-DnsName intranet.saatlab.internal

You’ll see something like this:

RemoteAddress TcpTestSucceeded
------------- ----------------
10.0.0.20     True

Resolve-DnsName : intranet.saatlab.internal : DNS name does not exist

By IP the web server is fine, so the problem is name resolution, and the next question is what changed in DNS.

What changed: on DC01, look at the DNS audit log:

Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-DNSServer/Audit'; Id = 516 } -MaxEvents 3 |
    Format-List TimeCreated, Message

You’ll see something like this:

TimeCreated : 19/10/2026 10:40:12
Message     : A resource record of type 1, name intranet and RDATA 10.0.0.20 was deleted from scope Default of zone
              saatlab.internal.

Fix and verify: put the record back and test from CL01:

# On DC01
Add-DnsServerResourceRecordA -ZoneName saatlab.internal -Name intranet -IPv4Address 10.0.0.20

# On CL01
Clear-DnsClientCache
(Invoke-WebRequest https://intranet.saatlab.internal -UseDefaultCredentials -UseBasicParsing).StatusCode

You’ll see something like this:

200

✅ Checkpoint: You proved the cause (record deleted at 10:40) from the DNS audit log, not by guessing, and the user check returns 200.

3Scenario 2: “The intranet is down again”

Cause it: on SRV01, stop the web service and disable it:

Stop-Service W3SVC
Set-Service W3SVC -StartupType Disabled

Define and scope: on CL01, run the same symptom check and then test by name and port:

Resolve-DnsName intranet.saatlab.internal | Select-Object Name, IPAddress
Test-NetConnection intranet.saatlab.internal -Port 443 | Select-Object PingSucceeded, TcpTestSucceeded

You’ll see something like this:

Name                      IPAddress
----                      ---------
intranet.saatlab.internal 10.0.0.20

PingSucceeded TcpTestSucceeded
------------- ----------------
True          False

This time DNS works and the server answers ping, but nothing’s listening on port 443. It’s the same symptom at a different layer, so look at the service on SRV01.

What changed: on SRV01, run your function:

Get-RecentChange -Hours 2 | Format-Table -Wrap

You’ll see something like this:

TimeCreated          Id Message
-----------          -- -------
19/10/2026 11:05:37 7040 The start type of the World Wide Web Publishing Service service was changed from auto start
                         to disabled.

Fix and verify:

Set-Service W3SVC -StartupType Automatic
Start-Service W3SVC
Get-Service W3SVC | Select-Object Name, Status, StartType

You’ll see something like this:

Name  Status  StartType
----  ------  ---------
W3SVC Running Automatic

Then run the Invoke-WebRequest check on CL01 once more and confirm you get StatusCode 200.

✅ Checkpoint: Get-RecentChange showed event 7040, and the intranet works again from CL01.

Windows Server troubleshooting lab: Get-RecentChange finds event 7040 for W3SVC
Windows Server troubleshooting: the “what changed?” check points straight at event 7040

4Scenario 3: “SRV01 restarted at lunchtime”

Cause it: on SRV01, restart the server with a reason and a comment:

shutdown /r /t 0 /d p:4:1 /c "Lab restart test"

What changed: once it’s back up, run:

. C:\Lab\Get-RecentChange.ps1
Get-WinEvent -FilterHashtable @{ LogName = 'System'; Id = 1074 } -MaxEvents 1 | Format-List TimeCreated, Message

You’ll see something like this:

TimeCreated : 19/10/2026 12:31:08
Message     : The process C:\Windows\system32\shutdown.exe (SRV01) has initiated the restart of computer SRV01 on
              behalf of user SAATLAB\adm.rahul for the following reason: Application: Maintenance (Planned)
               Reason Code: 0x84040001
               Shutdown Type: restart
               Comment: Lab restart test

Event 1074 gives you the process, the account, the reason and the comment. If a restart has no 1074 but does have 41 or 6008, nobody restarted it; it lost power or crashed, and you’ll see exactly that in the Break It lab.

✅ Checkpoint: Event 1074 shows who restarted SRV01 and why.

5Write the incident report

On SRV01, save a short report for Scenario 1:

$report = @"
Incident: INC-001 Intranet unavailable
Impact:   All users, intranet.saatlab.internal, 10:40 to 10:58
Symptom:  "The remote name could not be resolved"
Cause:    A record 'intranet' deleted from zone saatlab.internal (DNS audit event 516, 10:40)
Fix:      Record re-created (10.0.0.20), verified HTTP 200 from CL01
Prevent:  DNS changes through change requests; alert on DNS audit event 516
"@
$report | Set-Content C:\Lab\INC-001.txt
Get-Content C:\Lab\INC-001.txt | Select-Object -First 2

You should see this:

Incident: INC-001 Intranet unavailable
Impact:   All users, intranet.saatlab.internal, 10:40 to 10:58

Keep it short and stick to the facts. Times, evidence and the prevention step count for more than long explanations.

✅ Checkpoint: C:\Lab\INC-001.txt holds impact, symptom, cause, fix and prevention.

Break It, Then Fix It

The whole workflow depends on evidence, so here you’ll destroy the evidence once and fake a power cut once, and see what’s left behind.

1Break it: clear the System log

On SRV01, change a service and then clear the log:

Set-Service Spooler -StartupType Manual
wevtutil cl System
Get-RecentChange -Hours 2 | Format-Table -Wrap

You’ll see something like this:

TimeCreated          Id Message
-----------          -- -------
19/10/2026 13:10:44  104 The System log file was cleared.

The 7040 event has gone and only event 104 is left, but that’s a clue in its own right, because it tells you someone cleared the log. On a real server that’s a red flag that an attacker may be covering their tracks.

To fix it, put the service back, make the log bigger and find out who cleared it:

Set-Service Spooler -StartupType Automatic
wevtutil sl System /ms:134217728
wevtutil gl System | Select-String maxSize
Get-WinEvent -FilterHashtable @{ LogName = 'System'; Id = 104 } -MaxEvents 1 |
    Select-Object TimeCreated, @{ n = 'User'; e = { $_.UserId.Translate([Security.Principal.NTAccount]) } }

You’ll see something like this:

maxSize: 134217728

TimeCreated         User
-----------         ----
19/10/2026 13:10:44 SAATLAB\adm.rahul

A bigger log (128 MB here) holds more history, and forwarding events to a collector as you did in Lesson 39 keeps a copy even if someone wipes the local log.

✅ Checkpoint: Clearing the log removed the 7040 event and left event 104 with the account that cleared it.

2Break it: pull the power on SRV01

On your laptop, power off the VM without shutting it down, and then start it again:

VBoxManage controlvm SRV01 poweroff
VBoxManage startvm SRV01 --type headless

Once SRV01 is back, look for a planned restart and for a dirty shutdown:

. C:\Lab\Get-RecentChange.ps1
Get-RecentChange -Hours 1 | Format-Table -Wrap

You’ll see something like this:

TimeCreated          Id Message
-----------          -- -------
19/10/2026 13:22:09 6005 The Event log service was started.
19/10/2026 13:22:09 6008 The previous system shutdown at 13:20:41 on 19/10/2026 was unexpected.
19/10/2026 13:21:58   41 The system has rebooted without cleanly shutting down first. This error could be caused if
                         the system stopped responding, crashed, or lost power unexpectedly.
Windows Server troubleshooting break lab: events 41 and 6008 after a hard power-off
An unexpected shutdown leaves events 41 and 6008, but no 1074

There’s no 1074 this time, so no person or process asked for a restart, and events 41 and 6008 point to a power loss, a hang or a crash. Your next questions are for the hypervisor, the power supply or the crash dumps (Lesson 48), not for the admins.

To fix it, check the disk after the unclean shutdown:

Repair-Volume -DriveLetter C -Scan
Repair-Volume -DriveLetter D -Scan

You’ll see something like this:

NoErrorsFound
NoErrorsFound

✅ Checkpoint: After the power-off you found 41 and 6008 but no 1074, and both volumes scan clean.

This happened at work

The 2 AM fix that nobody could repeat

An order system slowed to a crawl at 2 AM. The on-call engineer restarted the app service, cleared a temp folder, raised the SQL memory limit and rebooted the server, all inside twenty minutes, and when it recovered he went back to bed. Three nights later it happened again to a different engineer, and since nobody knew which of the four changes had helped, she did all four again. The third time round, even the reboot didn’t help, and the outage dragged on for two hours.

In the end a senior admin sat down and followed the method. Get-WinEvent showed the slowdown began each night two minutes after a new antivirus full scan that had been added a week earlier, and excluding the database folders fixed it for good.

The fix: on-call engineers now log every change with a time in the ticket, and the runbook opens with “what changed in the last 7 days?” The lesson: four changes at once can make a problem disappear without teaching you anything, so make one change at a time and write it down.

Common mistakes and troubleshooting

MistakeWhat happensWhat to do instead
Fixing before definingYou fix the wrong thingWrite down the exact error, time and who is affected
Restarting firstEvidence in memory and logs is lostCollect logs and state first, unless the impact is severe
Changing several things at onceYou don’t know what fixed itOne change at a time, with notes
Trusting “nothing changed”You miss the causeCheck event logs, updates, GPOs and the change calendar
Testing only from the serverThe user may still be brokenVerify from the user’s side
Ignoring time zonesEvents don’t line upNote times with time zone; check clocks are in sync
Small event logsHistory is overwritten in hoursBigger logs and event forwarding
No write-upThe same problem comes backShort incident report with a prevention step

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 calls and says “the server is down”. What’s the first thing you do?

Why they ask this: They want to see that you have a method and start by gathering facts instead of restarting things.

How you might answer: I start by asking questions: what exactly is failing, since when, for whom, and what does the error say word for word, because “down” can mean lots of things. Then I try to reproduce it myself and check whether other users are hit too.

2. A user can’t reach a server. How would you tell whether it’s a DNS problem or a network problem?

Why they ask this: They want to know you can narrow a problem down with one quick, simple test.

How you might answer: I test by IP address and by name, and if the IP works but the name fails, it’s name resolution and not the network. I use Resolve-DnsName to check the name and Test-NetConnection to check the connection and the port.

3. A server restarted overnight and nobody admits to it. Which event would you check?

Why they ask this: They’re checking that you know the basic event IDs that answer common questions fast.

How you might answer: I’d look for System event 1074, which shows which process or user started the restart along with the reason and any comment. If there’s no 1074 but I find 41 or 6008, it was an unexpected shutdown, like a crash or a power loss.

2–5 years experience

4. Walk me through how you troubleshoot a problem you’ve never seen before.

Why they ask this: They want to hear a structured process they can trust when the problem’s new and the pressure’s high.

How you might answer: I define the problem clearly, work out the scope and ask what changed, and from there I form a hypothesis and test it. When I’ve found the fix I check it really solved the problem and document it. Throughout, I change one thing at a time so I know what worked.

5. Something broke this morning, and the team swears nothing changed. How would you find what changed?

Why they ask this: They want to see you go looking for evidence instead of trusting people’s memory.

How you might answer: I’d go through the event logs: 7040 and 7045 for service changes, 1074 for restarts, Setup event 2 and MsiInstaller events for installs, plus the update history and recent GPO changes. After that I’d check the DNS audit logs, change tickets and monitoring baselines, and something usually turns up.

6. When would you restart a server instead of digging into the cause first?

Why they ask this: They want to see you can balance the impact on users against finding the root cause.

How you might answer: I’d restart when the impact is high and a restart is a known, safe workaround, because in that moment the users come first. If I can, I grab logs, dumps and the current state before restarting, and afterwards I still chase the root cause so it doesn’t happen again.

Senior level

7. A big outage pulls in the network, storage and app teams at once. How would you run it?

Why they ask this: They want to know if you can lead people through a major incident, and not only fix the technical side.

How you might answer: I’d make sure there’s one incident lead and a shared timeline everyone can see, with regular updates and a clear owner for each hypothesis. I’d freeze other changes while we work, and afterwards we’d run a blameless review so people feel safe saying what really happened.

8. The same incident has happened three times this year. How would you stop it from coming back?

Why they ask this: They want to see you look past the quick fix and push for change that lasts.

How you might answer: I’d do a proper root cause analysis and agree prevention actions, each with an owner and a date, and add monitoring and alerts on whatever sets the problem off. I’d also update the runbook and add a check to our change reviews, so the same risk gets caught earlier next time.

9. You manage 500 servers. How would you make “what changed?” a quick question to answer?

Why they ask this: They want to see you think at scale and build tools that make troubleshooting faster for the whole team.

How you might answer: I’d collect events centrally with WEF or a SIEM and keep track of configuration and inventory, with change management linked to the configuration items so every change is tied to a server. Then I’d build saved queries for change events, so anyone on the team can answer it in a few minutes.

Quick quiz

Q1. What is the first step of the workflow?

  1. Restart the service
  2. Define the problem exactly
  3. Check the firewall
Show answer

B — Exact error, time and who is affected.

Q2. The IP works but the name fails. Which layer is it?

  1. Name resolution
  2. Disk
  3. Kerberos
Show answer

A — Check DNS next.

Q3. Which event ID shows a service start type change?

  1. 7040
  2. 4624
  3. 1074
Show answer

A — 7045 is a new service.

Q4. A restart with events 41 and 6008 but no 1074 means what?

  1. An admin restarted it
  2. Unexpected shutdown: power loss, hang or crash
  3. Windows Update
Show answer

B — No person or process asked for it.

Q5. Why change one thing at a time?

  1. It is faster
  2. So you know what fixed it
  3. Microsoft requires it
Show answer

B — The work story showed why.

Quick recap

  • Windows Server troubleshooting follows a method: define, scope, what changed, test, fix and verify, document.
  • Scoping by name versus IP, port and service tells you which layer to check.
  • Get-RecentChange lists key change events: 7040, 7045, 1074, 41, 6008, 104, updates and installs.
  • The same symptom can have different causes, so let the evidence decide.
  • Protect the evidence with bigger logs and event forwarding.
  • Write a short incident report with a prevention step.

Next lesson

Lesson 43: Event logs → Next you’ll learn the event IDs every admin should know, filter logs quickly with Get-WinEvent and XPath, and put together a cheat sheet you can take to work.

Further reading: Windows Server troubleshooting

Want to go deeper into Windows Server troubleshooting? Microsoft’s Windows Server troubleshooting documentation has guides by area, and the Get-WinEvent reference explains every filter option. 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.