All tools Developer

Scheduled Task XML Generator

Generate Windows Task Scheduler XML ready to import, with once, daily, weekly, monthly, logon and startup triggers.

Install the task
  1. Command Prompt (run as administrator):

    schtasks /create /xml task.xml /tn "MyTask"
  2. Or PowerShell (run as administrator):

    Register-ScheduledTask -Xml (Get-Content "task.xml" | Out-String) -TaskName "MyTask"

Runs in your browser. Nothing you open or type here is uploaded.

How to use

  1. Name the task and enter the program or command it should run, with arguments and a working directory if needed.
  2. Choose a trigger: once, daily, weekly, monthly, at logon, or at startup.
  3. Set the security options: the user context it runs under, whether it needs highest privileges, and the power conditions.
  4. Copy the generated XML, or download it, then import it with the schtasks or PowerShell command shown below.

Details

Windows Task Scheduler can import a task from an XML file instead of building it through dialogs. This tool builds that XML (task version 1.2, valid on Windows Vista and later, including Windows 10 and 11) from a form: the action to run, one trigger — once, daily, weekly, monthly, at logon or at startup — and the principal and power settings. Import it from an elevated Command Prompt with schtasks /create /xml, or register it from PowerShell with Register-ScheduledTask.

  • Administrator rights are only needed when the task runs with highest privileges or whether the user is logged on or not. A per-user logon task usually installs without elevation.
  • The startup delay uses ISO 8601 duration format: PT30S is 30 seconds, PT5M is 5 minutes.
  • A backslash is not allowed in the task name here, because Task Scheduler reads it as a folder separator in the /tn argument.

Common questions

How do I install the task?

Open Command Prompt as administrator and run: schtasks /create /xml task.xml /tn "MyTask". Or in PowerShell: Register-ScheduledTask -Xml (Get-Content "task.xml" | Out-String) -TaskName "MyTask".

Do I need administrator rights?

Only if the task must run with the highest privileges, or run whether the user is logged on or not. Per-user logon tasks usually install without elevation.

Does the XML work on every Windows version?

Task version 1.2 targets Windows Vista and later, including Windows 10 and 11. It imports cleanly into Task Scheduler on all of them.