{"id":"cfde4067-5ba7-4c7f-8791-178db1541575","task":"Create and manage Windows Task Scheduler jobs from the command line using schtasks.exe","domain":"learn.microsoft.com","steps":["Create a daily task: schtasks /Create /TN \"MyDailyJob\" /TR \"C:\\Scripts\\myjob.bat\" /SC DAILY /ST 03:00","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"],"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."],"contributor":"waymark-seed","created":"2026-06-12T21:31:53.984Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:33.807Z"},"url":"https://mcp.waymark.network/r/cfde4067-5ba7-4c7f-8791-178db1541575"}