Skip to content

@tank/windows-maintenance

1.0.0
Skill

Description

Windows 10/11 health checks, security audit, and maintenance. Diagnoses disk SMART, sfc/DISM integrity, Defender, firewall, BitLocker, UAC, Secure Boot, TPM, battery, memory, updates, event log errors, driver health. Scored checkup script.

Triggered by

windows health checksystem checkupis my pc okwindows maintenancepc running slowsfc scannow
Download
Review Recommended
tank install @tank/windows-maintenance

Windows Maintenance

System health checks, security auditing, and periodic maintenance for Windows 10/11. Keeps your PC healthy, secure, and performant — the diagnostic counterpart to @tank/windows-cleanup.

Core Philosophy

  1. Diagnose before fixing. Run the checkup script first.
  2. Scored health reports. Every check is PASS/WARN/FAIL.
  3. Security by default. Defender, firewall, BitLocker, UAC, Secure Boot should all be enabled. Flag anything that's off.
  4. PowerShell first. All commands are PowerShell. Mark Admin requirements.
  5. Know when to restart. Many issues resolve with a restart.

Quick-Start

"Is my PC OK?" / "Run a health check"

.\scripts\system-checkup.ps1

Flags: -Json, -Quick, -SecurityOnly

"My PC is running slow"

StepCheckCommand
1MemoryGet-Process | Sort WorkingSet64 -Desc | Select -First 10
2CPUGet-Counter '\Processor(_Total)\% Processor Time'
3Disk spaceGet-PSDrive C (needs >10% free)
4Uptime(Get-Date) - (gcim Win32_OperatingSystem).LastBootUpTime
5Startup itemsGet-CimInstance Win32_StartupCommand
6System filessfc /scannow (Admin)
7RestartFixes most transient issues

"Run security audit"

.\scripts\system-checkup.ps1 -SecurityOnly

"Fix corrupted system files"

DISM /Online /Cleanup-Image /RestoreHealth  # Admin, 10-30 min
sfc /scannow                                # Admin, 5-15 min

Decision Trees

What to Check Based on Symptom

SymptomFirst CheckThen
PC is slowMemory + CPUDisk space, uptime, startup items
BSOD/crashEvent logs, sfc/DISMDrivers, disk health
Battery drains fastBattery reportStartup programs
Updates failingDISM repairClear update cache
App won't installDisk space, UACsfc /scannow
Network issuesDNS, connectivityWi-Fi report

Security Issue Priority

IssueSeverityFix
Defender disabledCriticalEnable in Windows Security
UAC disabledCriticalRegistry or Group Policy
BitLocker offHighEnable-BitLocker (Admin)
Firewall offHighSet-NetFirewallProfile -Enabled True
Secure Boot offMediumBIOS/UEFI settings
Auto-updates offMediumSettings > Windows Update
Remote Desktop onLowDisable if not needed

Maintenance Frequency

TaskFrequency
Windows Update checkWeekly
Defender signature checkWeekly
Full health checkQuarterly
sfc /scannow + DISMQuarterly
Driver auditQuarterly
Startup programs reviewQuarterly
Battery report (laptops)Monthly
Event log reviewMonthly
Component store cleanupQuarterly
Drive optimization checkMonthly

Common Fix Commands

# System file repair (Admin)
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

# Flush DNS
Clear-DnsClientCache

# Network reset (Admin)
netsh int ip reset
netsh winsock reset

# Force Windows Update check
(New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher().Search("IsInstalled=0")

# Enable firewall (Admin)
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True

# Generate battery report (Admin)
powercfg /batteryreport /output "$env:USERPROFILE\Desktop\battery-report.html"

Reference Files

FileContents
references/health-checks.mdDisk SMART, chkdsk, battery report, memory/page file, CPU, sfc/DISM, event logs, driver health, uptime, backup status
references/security-posture.mdDefender, firewall, BitLocker, UAC, Secure Boot, TPM, auto-updates, remote access, security scorecard
references/maintenance-tasks.mdsfc/DISM repair, Windows Update maintenance, drive optimization, startup audit, services audit, DNS flush, network reset, troubleshooting guides
references/network-diagnostics.mdConnectivity tests, DNS diagnostics, Wi-Fi report, port/firewall testing, VPN status, network reset

Scripts

ScriptUsage
scripts/system-checkup.ps1Full health report with scored results. Flags: -Json, -Quick, -SecurityOnly

Command Palette

Search packages, docs, and navigate Tank