Sub topic 22
Matching Tools to Exam Scenarios
This chapter assumes you have worked through the earlier chapters. You should know the basic switches of ipconfig, ping, chkdsk, sfc, and gpupdate, and you should know where Task Manager, Event Viewer, Services, and Device Manager live. Here you practice the final exam skill: reading a symptom and picking the right tool.
A method for scenario questions
Exam scenarios describe a symptom and ask for the best tool or command. Three questions narrow the choice quickly.
- Which layer is failing: network, disk or file system, a running process, a service or startup item, a policy, or a device?
- Do you need to look, or to change? Looking tools are safe. Changing tools such as format, diskpart clean, taskkill, and regedit need care.
- Does the question say "command line" or "console"? If it does, that cuts the options in half.
Symptom-to-tool table
| Symptom in the scenario | Best first tool | Why |
|---|---|---|
| Got a 169.254.x.x address | ipconfig /release, then /renew | The client failed to get a DHCP lease |
| Web sites fail by name but work by IP | nslookup, then ipconfig /flushdns | The problem is name resolution |
| Need to find where packets stop | tracert -d | It shows each hop on the path |
| Unknown program is using the network | netstat -ano, then tasklist | netstat shows the owning process ID |
| Mapped drive is missing | net use | It lists and rebuilds mappings |
| Files are corrupt or the system acts oddly | sfc /scannow | It repairs protected system files |
| File system errors or bad sectors | chkdsk /f | It fixes file system errors |
| New disk not visible in Explorer | Disk Management | The disk must be initialized, partitioned, and given a letter |
| Policy change did not take effect | gpupdate /force, then gpresult /r | Reapply the policy, then verify what applied |
| Program hangs and will not close | Task Manager or taskkill | End the process |
| Slow boot | Task Manager Startup tab or msconfig | Disable startup items |
| Service will not start after a reboot | Services console, then Event Viewer | Check the startup type, then read the error |
| Device shows a yellow warning icon | Device Manager | Update, roll back, or reinstall the driver |
| Need a program to run every night | Task Scheduler | Set a trigger and an action |
Working a network scenario in order
Test from the inside out. Each step rules out a layer, so a failure points to the layer where you stopped.
ipconfig /all
ping -n 4 127.0.0.1
ping -n 4 example.com
tracert -d example.com
nslookup example.comRead the results as follows:
- If ipconfig shows a 169.254.x.x address, DHCP failed. Fix the lease before testing anything else.
- If the loopback ping fails, the local TCP/IP stack is damaged.
- If pinging the default gateway works but a remote IP address does not, the problem is beyond your router.
- If an IP address answers but its name does not, the problem is DNS. Confirm with nslookup.
- If tracert stops at one hop, that device or the link after it is the likely cause.
Disk and system file scenarios
Pick the tool by what is damaged:
- Corrupt files in the file system or bad sectors point to chkdsk.
- Missing or modified Windows files point to sfc /scannow. If sfc cannot repair them, DISM repairs the component store that sfc draws from, and you then run sfc again.
- A disk that is not in Explorer points to Disk Management or diskpart.
chkdsk C: /f
sfc /scannow
diskpart
list disk
list volume
exitPerformance and startup scenarios
Start with Task Manager. Its Processes tab shows which program uses the CPU, memory, disk, or network. Use Resource Monitor when you need to know which files or connections a process is using. Use Performance Monitor when you need counters logged over time, for example to find a memory leak that builds up across hours.
For a slow boot, check the Startup tab in Task Manager first. If the question mentions boot options, safe mode, or selective startup, the answer is System Configuration (msconfig). If the question asks for hardware, BIOS, or driver details, the answer is System Information (msinfo32).
Policy and account scenarios
Use net user to inspect or change a local account from the command line. Use Local Users and Groups to work with accounts and group membership in the console. Use gpedit.msc for broad Group Policy settings and Local Security Policy for password and lockout rules. Note that gpedit is not included in Home editions. Afterward, confirm the result:
gpupdate /force
gpresult /rCommon traps
- Release without renew: ipconfig /release drops your address. Always follow it with /renew.
- sfc versus chkdsk: sfc repairs Windows system files, and chkdsk repairs the file system structure. They are not interchangeable.
- Console versus command: When a question asks for a graphical tool, answers such as netstat or diskpart are wrong, even if they would work.
- Registry edits: Editing the registry is the last resort. Back up the key first, because a bad value can stop Windows from booting.
- Elevation: Many commands, including sfc, chkdsk /f, and diskpart, need an administrator Command Prompt. "Access denied" in a scenario usually means this.
Exercise
A user can open https://192.0.2.10 but cannot open the same site by its name. ipconfig /all shows a valid address and gateway. Which command do you run first, and which command clears the likely stale data afterward?
Show answer
Run nslookup with the site name to test name resolution. Because the IP address works, the network path is fine and DNS is the suspect. Then run ipconfig /flushdns to clear the local resolver cache.
Exercise
After installing a new drive, a technician sees nothing in File Explorer. Which console should they open, and what three things might they need to do?
Show answer
Open Disk Management. The disk may need to be initialized, a partition created and formatted, and a drive letter assigned.
Exercise
A policy was changed on a PC, but the setting has not applied. Name the two commands you use and their purposes.
Show answer
gpupdate /force reapplies Group Policy now. gpresult /r then summarizes which policies actually applied.