--- name: syscheck description: Run a system health check on this Windows admin node. Reports disk space, memory, network, services, and security status. allowed-tools: Bash, Read --- Run a comprehensive health check on this Windows admin node. ## Checks to perform (all via PowerShell): ### 1. Disk Space ```powershell Get-PSDrive -PSProvider FileSystem | Select Name, @{N='Used(GB)';E={[math]::Round($_.Used/1GB,1)}}, @{N='Free(GB)';E={[math]::Round($_.Free/1GB,1)}}, @{N='Total(GB)';E={[math]::Round(($_.Used+$_.Free)/1GB,1)}} ``` ### 2. Memory ```powershell $os = Get-CimInstance Win32_OperatingSystem; [PSCustomObject]@{TotalGB=[math]::Round($os.TotalVisibleMemorySize/1MB,1); FreeGB=[math]::Round($os.FreePhysicalMemory/1MB,1); UsedPct=[math]::Round((1-$os.FreePhysicalMemory/$os.TotalVisibleMemorySize)*100,1)} ``` ### 3. Top Processes (by memory) ```powershell Get-Process | Sort WorkingSet64 -Descending | Select -First 10 Name, @{N='MB';E={[math]::Round($_.WorkingSet64/1MB,1)}}, CPU ``` ### 4. Network Connectivity - Ping 8.8.8.8 (internet) - Ping (ALFRED / ARCANUM mesh) - Ping (Grafana NOC) - Check Tailscale status if available ### 5. Windows Defender Status ```powershell Get-MpComputerStatus | Select AntivirusEnabled, RealTimeProtectionEnabled, AntivirusSignatureLastUpdated ``` ### 6. Key Services Check status of: Windows Update, Windows Defender, Docker Desktop (if installed), SSH ## Output Format Present results as a compact dashboard table. Flag any warnings (disk >80%, memory >90%, unreachable nodes, outdated signatures).