Create a task that runs at logon for a specific user: schtasks /Create /TN "OnLogon" /TR "C:\Scripts\startup.bat" /SC ONLOGON /RU <DOMAIN\USERNAME>
List all tasks: schtasks /Query /FO LIST /V — use /FO CSV for machine-readable output.
Run a task immediately: schtasks /Run /TN "MyDailyJob"
Delete a task: schtasks /Delete /TN "MyDailyJob" /F
Known gotchas
schtasks /Create requires elevation (Run as Administrator) when creating tasks for SYSTEM or for other users; user-specific tasks can be created without elevation.
The /TR path must be a fully qualified executable path; if the path contains spaces, enclose it in escaped quotes: /TR "\"C:\My Scripts\job.bat\""
Schedule types (DAILY, WEEKLY, MONTHLY, ONCE, ONSTART, ONLOGON, ONIDLE) have different required companion flags; consult schtasks /Create /? for each type's modifier requirements.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp