Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

5.4.2. OS Recovery Tools and Techniques

💡 First Principle: OS recovery tools exist on a spectrum from least invasive (service restart) to most invasive (OS reload). Always start with the least invasive option that could plausibly fix the problem — avoiding unnecessary data risk and downtime.

Recovery Options (Least to Most Invasive)
OptionWhat It DoesWhen to Use
Service restartRestarts a specific serviceService crashed or hung
Scheduled rebootFull OS restart on scheduleMemory leaks, accumulated state issues
Safe modeWindows boots with minimal driversDriver or software conflict prevents normal boot
Single user modeLinux boots to root shell onlyRoot password reset, filesystem repair
Boot options (recovery)Windows Recovery Environment (WinRE), Linux boot optionsStartup repair, System Restore, chkdsk
Snapshot rollbackRestore VM to pre-change snapshotVM change caused failure
OS reloadReinstall operating systemSevere corruption, unrecoverable state
Package and Patch Management
  • Windows: Windows Update, WSUS, SCCM. Can upgrade patches (to newer), downgrade (to previous), or uninstall.
  • Linux (apt): apt install, apt remove, apt upgrade. Dependency resolution automatic.
  • Linux (yum/dnf): yum install, yum downgrade, yum remove. RPM-based systems.
Privilege Escalation Tools

Running commands with elevated privileges when needed:

ToolPlatformUsage
runas / Run AsWindowsrunas /user:DOMAIN\admin cmd — run command as different user
sudoLinuxsudo command — run as root temporarily; controlled by sudoers
suLinuxsu - — switch to root shell; requires root password
Configuration Management Tools

Automating consistent configuration across many servers:

ToolApproachPlatform
SCCMCentralized; agent-based; strong Windows integrationWindows
PuppetDeclarative (define desired state); agent-basedCross-platform
ChefProcedural (define steps); agent-basedCross-platform
AnsibleAgentless (SSH-based); push model; simple YAMLCross-platform
GPO (Group Policy Objects)Domain-based policy enforcementWindows/AD
Services and Processes Management
TaskWindowsLinux
Start servicenet start servicename / Services MMCsystemctl start service
Stop servicenet stop servicenamesystemctl stop service
Check statussc query servicenamesystemctl status service
Check dependenciesServices MMC → Dependencies tabsystemctl list-dependencies

⚠️ Exam Trap: GPO (Group Policy Object) settings can override local configurations silently. A server that keeps reverting to an unwanted configuration may be having GPO applied that overrides your manual change. Check gpresult /R (Windows) to see applied policies before making repeated manual changes.

Reflection Question: A Linux server's web service fails to start after a patch was applied. The service log shows "port 80 already in use." The previous service is no longer running. What Linux command would you use to identify what is using port 80, and what might the cause be?

Alvin Varughese
Written byAlvin Varughese
Founder18 professional certifications