Sub topic 11
Practicing operating system administration
This chapter assumes you have a working virtual machine lab with one Windows guest and one Linux guest, and that you can take snapshots. If not, finish the virtual machine lab chapter first.
Why practice administration in a lab
Core 2 tests operating system tasks heavily: managing users, installing and removing software, configuring settings, and repairing failures. Reading about these tasks is not enough. You need to have done each one so the steps come back under exam pressure. A lab lets you break things on purpose and recover.
Set up a safe practice loop
Take a snapshot of each guest before every session. A snapshot is a saved copy of a VM's state that you can restore later. Then work through a task, check the result, and revert.
Core tasks to rehearse
Map each task to an objective in your checklist, then repeat it until you can do it without notes.
| Area | Windows guest | Linux guest |
|---|---|---|
| Accounts | Create a standard user and an administrator in Settings and in Computer Management | Add a user and add it to a group |
| Software | Install and uninstall an app, then check Apps and Features | Install a package with the package manager |
| Services | Stop and start a service in Services | Check a service with `systemctl status` |
| Storage | Open Disk Management and view partitions | View mounted disks with `lsblk` |
| Updates | Run Windows Update and review its history | Update package lists and upgrade |
Do the same task through the graphical tool and the command line when both exist. The exam may show either one.
Repair a damaged Windows installation
Practice repair on the Windows guest, never on your daily computer. Open an elevated prompt (one started with "Run as administrator") and run these commands in order.
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
chkdsk C: /scansfc checks protected system files. DISM repairs the component store that sfc pulls good copies from. chkdsk scans the file system for errors. If sfc reports files it cannot repair, run DISM and then run sfc again.
Create controlled failures
Repair practice works best when you cause the fault yourself. Try these, one at a time, with a snapshot in place:
- Disable a needed service, then find and restart it.
- Fill a virtual disk until the guest warns about low space, then free space.
- Remove a user from the Administrators group and observe which actions fail.
- Uninstall an update and confirm the change in update history.
Write down the symptom, the tool you used, and the fix. This record feeds the troubleshooting method chapter and gives you review material for your weak objectives.
Exercise
You plan to practice the sfc /scannow command and then DISM /Online /Cleanup-Image /RestoreHealth on a Windows guest. What should you do before you start, and why does DISM matter if sfc reports files it cannot repair?
Show answer
Take a snapshot first, so you can restore the guest if the repair fails or is interrupted. DISM repairs the component store, which is where sfc gets clean copies of system files. After DISM finishes, run sfc /scannow again.