2.1 KiB
2.1 KiB
Session — GPS-RMM-Progress console popup made silent
User
- User: Howard Enos (howard)
- Machine: Howard-Home
- Role: tech
Summary
Howard reported a command window flashing on the desktop then disappearing. Traced it to
the GPS-RMM-Progress Windows scheduled task and made it run windowless.
Diagnosis
- Task:
GPS-RMM-Progress(root\folder, authorHoward) - Old action:
C:\Program Files\Git\bin\bash.exe -lc "cd /c/claudetools && bash .claude/scripts/gps-rmm-progress-check.sh" - Trigger: daily at 08:07 (single fire; no repetition interval)
- Root cause of flash: action launched
bash.exe(console subsystem) withLogonType = Interactive+Hidden = False, so a console window drew on the desktop each run. - Script is our GPS->GuruRMM enrollment progress check: read-only against RMM
/api/agents, DMs Howard a daily summary viadiscord-dm.sh. No interactive desktop needed -> safe to hide.
Fix
- Added
.claude/scripts/gps-rmm-progress-hidden.vbs— a wscript wrapper that runs bash with window style0(hidden),False(no wait).wscript.exeis a GUI-subsystem host, so no console is ever allocated. - Repointed the task action to:
- Execute:
C:\Windows\System32\wscript.exe - Arguments:
"C:\claudetools\.claude\scripts\gps-rmm-progress-hidden.vbs"
- Execute:
- Runtime environment unchanged (same interactive session, vault/SSH/env intact); only the window is suppressed.
Verification
Start-ScheduledTask GPS-RMM-Progress->LastResult 0x0, no visible wscript/bash/conhost windows. Flash eliminated.- The verification run was a real (non-dry) execution, so it sent Howard the normal daily Discord summary (expected).
Files changed
.claude/scripts/gps-rmm-progress-hidden.vbs(new)
Notes / pending
- The scheduled task itself is per-machine (not stored in repo) — this fix applies to Howard-Home only. Same change would be needed on any other machine running this task.
- Script self-reports
COMPLETEonce every tracked GPS client hits its RMM target; at that point the task can be retired:schtasks /Delete /TN GPS-RMM-Progress /F.