Pcornel
Security · Patch Management

Patch Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=4840

Back to the Topic

Answer

Troubleshoot patching by checking agent or update service status, error codes and update logs, free disk space, connectivity to the update source, pending reboots and conflicts with other software.

Remember

  • The error code explains most failures.
  • Low disk space and pending reboots block installs.
  • The update agent must be healthy.

First checks

  • Get-WindowsUpdateLog — Windows Update log
  • cat /var/log/apt/term.log / dnf history info last — Linux logs
  • Deployment tool errors — failures

Commands

Get-WinEvent -FilterHashtable @{LogName='System';ProviderName='Microsoft-Windows-WindowsUpdateClient'} -MaxEvents 50
Read-only/validation observation for recent Windows Update client events and failure context.

Verify in this order

update → download → install → reboot → verify

Where it usually breaks

First mismatch in asset inventory → applicable baseline/finding → risk/exception decision → remediation → verification → compliance/reporting; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4840

Confirmation

Confirm action

Continue?