retail-pos-fleet-healthlisted
Install: claude install-skill whobat/AI-Agent-skills
# Retail POS Fleet Health
> Sweeps **many Windows machines in parallel** over WinRM. The bundled script
> `scripts/Invoke-PosFleetHealth.ps1` collects health signals and emits JSON with
> **deterministically ranked warnings**; **the agent (you) writes the narrative.**
> The script is read-only on the targets — it never starts/stops anything.
`SCRIPT` = this skill's `scripts/Invoke-PosFleetHealth.ps1`.
## Credentials
The script **always prompts** for an admin credential (`Get-Credential`) — held in memory
for the run, reused across all hosts, never written to disk. Do not pass passwords on the
command line. SQL checks run *inside* each remote session against localhost with that
Windows login — no SQL credentials needed.
## How to run
Always run with `pwsh`. Parse the JSON from stdout.
| Want | Pass |
|------|------|
| **A few machines** | `-ComputerName POS001,POS002,POS003` |
| **The whole fleet** | `-ServerListFile C:\ops\pos-hosts.txt` (one host per line, `#` comments OK) |
| **Other services** | `-ServicePattern '*POS*','*Retail*','MSSQL*','MyService*'` |
| **Stricter disk check** | `-DiskMinFreePct 15` |
| **Event window** | `-EventHours 24` (default) |
| **Express limit warn level** | `-ExpressWarnAtPct 80` (default; of `-ExpressLimitGB 10`) |
| **Parallelism** | `-ThrottleLimit 12` (default) |
| **Save full report** | `-OutFile C:\ops\fleet-health.json` (do this for 100 hosts!) |
| **Transport/auth** | `-UseSSL` · `-Authentication Negotiate|Kerberos|CredSSP` |
`