Run the task with schtasks /run /tn "[jobname]" while the task’s Run As User is logged on; /i is not a valid option for schtasks /run, and the task is configured as Interactive only.
schtasks /run /tn "[jobname]"
schtasks /query /tn "[jobname]" /v /fo list
The documented /run syntax contains /tn, /s, /u, and /p, but no /i. It starts the task using the program path, account, and password stored in the task definition.^1^
What the current output means
- Logon Mode: Interactive only means the task runs only when its configured Run As User is logged on. This property normally comes from
/it, not/i.^2^ - Last Result: 267011 is decimal
0x00041303, orSCHED_S_TASK_HAS_NOT_RUN: the task has not yet run.^3^ - SUCCESS: Attempted to run... confirms that Task Scheduler accepted the request; it does not confirm that the action started or completed.
-
/ibelongs toschtasks /createfor an ONIDLE schedule, where it specifies the idle interval. Interactive-only behavior is selected with/it.^4^
Therefore, verify that the account displayed as Run As User in the verbose query has an active signed-in session—not merely that another administrator is signed in.
If the task must run without that user logged on
Recreate the task without /it. The command-line /change operation can add interactive-only mode but cannot remove it.^2^
Before deleting anything, export the existing task from Task Scheduler → Task Scheduler Library → right-click the task → Export. Then recreate it without /it, supplying the intended /ru account and its /rp password as required. Deleting the existing task is destructive, so retain the exported XML until the replacement works.
If the program displays windows or prompts, either:
- keep Run only when user is logged on, or
- modify it to run non-interactively and write output to a file or event log.
If it still does not start
Since the executable already works interactively and the batch-logon right is already assigned, do not repeat those checks. Instead:
- Open Task Scheduler, select the task, and inspect its History tab.
- Open Event Viewer → Applications and Services Logs → Microsoft → Windows → TaskScheduler → Operational.
- Look for the event immediately following the manual run request. It should identify whether the request was rejected by a task condition, principal/session setting, or action configuration.
- If History is empty, enable task history and retry once.
- Export the task XML and preserve the Operational log if escalation is required.
Microsoft’s troubleshooting procedure specifically recommends the History tab and TaskScheduler Operational log, and suggests using Run only when user is logged on to isolate security-context problems.^5^
References