Sub topic 14
Applying the troubleshooting methodology to lab scenarios
This chapter assumes you have a working virtual machine lab with one Windows and one Linux guest. It also assumes you can open a command prompt or terminal on each. You should know the basic command-line tools from the previous chapter. Here you will practice the CompTIA troubleshooting process on faults you create yourself, so the steps become habit before the exam.
The six steps and why the order matters
CompTIA tests a fixed process. Exam questions, especially performance-based ones, often ask which step comes next. Memorize the order and learn what each step produces.
- Identify the problem.
- Establish a theory of probable cause.
- Test the theory to determine the cause.
- Establish a plan of action, then implement the solution or escalate.
- Verify full system functionality and implement preventive measures.
- Document findings, actions, and outcomes.
The CompTIA objectives list these steps with a few sub-steps. Check the current objectives document for the exact wording, because CompTIA revises it between exam versions.
| Step | What you produce | Lab example |
|---|---|---|
| Identify | A clear symptom statement | "The Windows guest cannot open websites" |
| Theory | A ranked list of likely causes | DNS, gateway, adapter disabled |
| Test | Evidence that confirms or rejects one cause | `nslookup` fails but `ping` to an IP works |
| Plan and fix | A change you can undo | Set DNS server back to automatic |
| Verify | Proof the fault is gone and nothing else broke | Browse, ping, and re-run the commands |
| Document | A written record | A short lab log entry |
Step 1: Identify the problem in the lab
Real users describe symptoms vaguely. Practice turning a vague report into a precise one. Ask what changed, when it started, and whether anything else is affected. In a lab you play both roles, so write the symptom down before you touch anything.
Useful identification actions:
- Reproduce the problem and note the exact error text.
- Check whether it affects one guest or all of them.
- Review recent changes, such as a new driver, update, or network setting.
- Back up first when your fix could lose data. In a VM, take a snapshot.
A snapshot is a saved state of a virtual machine that you can return to. Take one named clean-baseline before you inject any fault. It is your safety net and costs nothing.
Step 2 and 3: Theory and testing
Start with the simplest, most likely cause. Work from the bottom of the stack upward, or use a divide-and-conquer approach by testing the middle first. For networking, the command sequence from the networking chapter is a ready-made test plan. Each command tests one layer.
ipconfig /all
ping 127.0.0.1
ping <default-gateway-address>
nslookup example.com
tracert example.comRead results as evidence:
ipconfig /allshows an address starting with 169.254. The guest did not get a DHCP lease. Theory: DHCP is unreachable or the adapter is on the wrong virtual network.ping 127.0.0.1fails. The local TCP/IP stack is damaged. This is rare and points to the guest itself.- Gateway ping works, but
nslookupfails. The path is fine and name resolution is the problem. tracertstops after the first hop. The gateway is not forwarding traffic.
On a Linux guest, the equivalent evidence comes from these commands.
ip addr show
ip route show
ping -c 4 <default-gateway-address>
resolvectl statusA missing default via line in ip route show means there is no default route. That is a different fault from a DNS failure, and a different fix.
Building a fault-injection routine
Breaking your own lab on purpose is the fastest way to practice. Use this routine for each scenario.
- Restore the
clean-baselinesnapshot. - Inject one fault from the list below.
- Wait a day, or have a study partner do the injection, so you do not remember the cause.
- Work the six steps and write the log entry.
- Restore the snapshot and move on.
Faults worth injecting:
| Fault | How to create it | Symptom |
|---|---|---|
| Wrong DNS server | Set a static DNS address that does not exist | Sites fail by name, ping by IP works |
| Disabled adapter | Disable the network adapter in the guest | No connectivity, no address |
| Wrong virtual network | Switch the VM adapter from NAT to host-only | No internet, local access only |
| Static IP in wrong subnet | Set an address outside the gateway's subnet | Cannot reach the gateway |
| Stopped service | Stop the Windows Update or print spooler service | Feature fails, other things work |
| Corrupt system file | Rename a protected file in a throwaway guest | Errors or crashes on use |
| Full disk | Fill a small virtual disk with large files | Slow behavior, save and update failures |
Operating system faults and repair tools
For Windows problems that point to damaged files or a failing disk, run these from an elevated prompt, which means a command prompt opened with administrator rights. Do this only in a lab VM.
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
chkdsk C: /scanThe order has a reason. sfc checks protected system files against the component store. If the store itself is damaged, sfc cannot repair files correctly. DISM repairs the store, and you can then run sfc again. chkdsk checks the file system for errors, and the /scan option runs an online scan without taking the volume offline.
Common mistakes with these tools:
- Running
sfcwithout administrator rights. It reports that you must be an administrator. - Treating "Windows Resource Protection found corrupt files and was unable to fix some of them" as success. It is not. Run
DISM, thensfcagain. - Running
chkdskwith repair options on a volume that is failing physically. On a real drive with failing hardware, back up first.
Step 4: Plan, implement, or escalate
A plan of action names the change, the risk, and how to undo it. In a lab, "undo" is the snapshot. On the job, you may need approval, and you should know when to escalate. Escalate when the fix is beyond your authority or skill, or when the risk is high, such as a suspected security breach. The exam favors answers that escalate instead of guessing in those cases.
Step 5 and 6: Verify and document
Verification means the original symptom is gone and related functions still work. After fixing DNS, do not stop at one successful nslookup. Browse to a site, confirm the gateway still answers, and test the other guest. Then add a preventive measure, such as a note in your lab log about the setting that caused the fault.
Keep each log entry short:
lab_log_entry:
date: 2026-11-27
symptom: "Windows guest cannot browse; ping to 8.8.8.8 works"
theory: "DNS server setting is wrong"
test: "nslookup example.com timed out; resetting DNS to automatic fixed it"
fix: "Set DNS to obtain automatically"
verification: "Browsed three sites; ping and nslookup succeed"
prevention: "Check static DNS settings after changing networks"Reviewing these entries weekly also feeds the progress tracking you will do later. Faults you keep missing show which objectives need more study.
Common errors when practicing
- Skipping to the fix. Learners recognize a symptom and apply a remembered cure. This works until the cause is different. Always write the test that confirms the cause.
- Testing only one layer. A working ping to an IP address does not prove DNS works.
- Forgetting to verify. A fix that solves one symptom can break another.
- Not documenting. The exam includes documentation as a final step, and skipping it is a wrong answer.
- Practicing only familiar faults. Ask a partner to inject faults you have not seen.
Exercise
A Windows guest shows an IP address of 169.254.12.7. Name the most likely cause, one command you would run to test it, and the step of the troubleshooting methodology that you complete when you run it.
Show answer
The guest did not receive an address from a DHCP server, so it assigned itself an automatic private address. Likely causes are an unreachable DHCP server or a wrong virtual network setting. Run ipconfig /all to confirm there is no lease, or ipconfig /renew to test whether a lease can be obtained. Running the command completes step 3, test the theory to determine the cause.
Exercise
After running sfc /scannow, a lab VM reports that it found corrupt files and could not fix some of them. What do you run next, and why?
Show answer
Run DISM /Online /Cleanup-Image /RestoreHealth from an elevated prompt to repair the component store that sfc uses as its source. Then run sfc /scannow again and verify that it reports no integrity violations.