Troubleshooting

Start with:


dispatch doctor
dispatch logs show latest
dispatch logs tail latest --count 50

Target Resolution Failures

Common causes:

Fix the inventory or selector before retrying.

Inventory Validation Failures

Common causes:

Inventory validation fails before endpoint work starts.

PsExec Failures

Common causes:

WinRM Failures

Common causes:

PSRP Failures

Common causes:

Config Errors

Common causes:

What Doctor Proves

dispatch doctor proves local prerequisites for the selected transport scope. Use --transport psexec, --transport psrp, or --transport winrm when a failure only matters for one remoting path. Omitted --transport and --transport auto check the current local transport prerequisite set. Current shared checks include runtime, shell, global Dispatch config parseability, host inventory schema availability, configured credential provider availability, output path, run-history layout, user context, and local policy state. The Host schema check reports parser/contract availability when no inventory is configured and validates dispatch.inventory / Dispatch:Inventory through the same supported parser used by hosts validate when an inventory path is configured. The credential provider check reports provider status without prompting, decrypting local stores, reading Key Vault secrets, or listing credential references. The config check reports the global config path as absent, parseable, inaccessible, or invalid; malformed YAML/JSON and plaintext secret fields are invalid config failures. The PsExec scope also checks configured PsExec path, effective PsExec policy, current-user PsExec EULA registry state, and local admin-token state; EULA is read-only and reported as a warning when missing. Use --output json, --output ndjson, or --output yaml when automation needs a machine-readable report. It does not prove that every endpoint can execute a job, and it does not remediate endpoint settings.

Script Succeeded But Artifacts Are Missing

A script can succeed and artifact collection can report not-found when the script did not create the expected logs\ or artifacts\ folders. This is not a script failure.

stdout.txt and stderr.txt can exist even when no script-created logs or artifacts were copied back, because stdout/stderr are captured process streams.

Artifact Collection Failed

Artifact collection can fail after execution succeeded. Treat this separately: