This page contains promotions.

Windows Task Scheduler Guide | How to Automate Tasks and Manage Schedules

Windowsタスクスケジューラで自動実行するイメージ

Want to run a backup script every night, launch an app at startup, or fire off a PowerShell script on a schedule? Task Scheduler handles all of this without any third-party software. It's built into every version of Windows, and it supports surprisingly sophisticated conditions. This guide covers how to open Task Scheduler, create a basic scheduled task, configure advanced triggers, and manage tasks you've already created.

Table of Contents

  1. What Is Task Scheduler?
    1. What You Can Do with It
    2. Task Scheduler vs. the Startup Folder
  2. How to Open Task Scheduler
  3. How to Create a Basic Task
    1. Using the Create Basic Task Wizard
    2. Specifying the Program or Script
  4. Customizing Triggers and Conditions
    1. Startup, Logon, and Event Triggers
    2. Power and Network Conditions
  5. Viewing, Editing, and Deleting Tasks
  6. FAQ
  7. Summary

What Is Task Scheduler?

Task Scheduler is a built-in Windows tool that runs programs, scripts, or commands automatically based on a time or event trigger.

What You Can Do with It

Some common use cases:

  • Run a batch file (backup script) every night at midnight
  • Launch a specific app when the PC starts
  • Display a notification at logon
  • Run maintenance tasks when the PC is idle
  • Trigger an action when a specific event log entry appears

All of this works with nothing beyond what Windows already includes.

Task Scheduler vs. the Startup Folder

If all you need is to open an app at startup, dropping a shortcut into the Startup folder works. But there are key differences:

  • Startup folder — triggers only at logon; no conditional logic; admin-rights execution requires extra setup
  • Task Scheduler — supports startup, logon, time, and event triggers; full control over run-as-admin, delayed start, power conditions, and more

For anything beyond "just open this app at logon," Task Scheduler is far more flexible.

How to Open Task Scheduler

There are several ways to open it — pick whichever you find easiest:

  • Start menu search — type "Task Scheduler" and click the result
  • Run dialog — press Win + R, type taskschd.msc, press Enter
  • Computer Management — right-click Start → Computer Management → Task Scheduler

The Win + R → taskschd.msc method is the fastest, so it's worth memorizing.

The Task Scheduler window has three panes: on the left is the Task Scheduler Library (a folder tree of tasks), in the center is the task list for the selected folder, and on the right is the Actions panel.

How to Create a Basic Task

A good starting point is a simple task that runs a program at a scheduled time.

Using the Create Basic Task Wizard

  1. Open Task Scheduler
  2. In the right pane, click Create Basic Task
  3. Enter a Name (e.g., "Daily Backup")
  4. Optionally add a Description
  5. Click Next

On the Trigger screen, choose when the task should run:

  • Daily / Weekly / Monthly — recurring schedule
  • One time — run once
  • When the computer starts / When I log on — event-based
  • When a specific event is logged — event log trigger

Selecting a recurring option takes you to a screen where you set the start date and time.

Specifying the Program or Script

After setting the trigger, the Action screen lets you choose what to run:

  1. Select Start a program
  2. In the Program/script field, enter the path to the executable: - Example: C:\Scripts\backup.bat - For PowerShell: powershell.exe
  3. Add arguments — for a PowerShell script: -File C:\Scripts\backup.ps1
  4. Start in (optional) — set a working directory if needed
  5. Click Finish on the confirmation screen to register the task

The task is now scheduled. Upcoming run times appear in the center pane of the Task Scheduler Library.

Customizing Triggers and Conditions

The Create Basic Task wizard has limited options. For advanced configuration, use Create Task instead.

Startup, Logon, and Event Triggers

The Triggers tab offers a wide range of trigger types:

  • On a schedule — time-based (same as the basic wizard)
  • At log on — fires when a specific or any user logs in
  • At startup — fires when the PC powers on (before logon)
  • On idle — fires when the PC hasn't been used for a set period
  • On an event — monitors the event log
  • On task creation/modification — fires once when the task is created (useful for testing)
  • On connection/disconnect to user session
  • On workstation lock/unlock

You can add multiple triggers — the task fires when any of them is met.

Power and Network Conditions

The Conditions tab lets you add extra requirements before a task runs:

  • Start only if the computer is idle — run only when the PC isn't being used
  • Start only if AC power is available — skip the task when running on battery
  • Start only if the network connection is available — useful for network-dependent scripts
  • Wake the computer to run this task — automatically wake from sleep to execute

Combining "AC power only" and "idle only" is ideal for heavy overnight tasks — it keeps them from interfering with active use.

Viewing, Editing, and Deleting Tasks

To manage tasks you've already created:

  1. Open Task Scheduler
  2. Select Task Scheduler Library in the left pane (your custom tasks appear here)
  3. Click a task in the center pane
  4. Use the right pane to act on it:
ActionWhat it does
RunExecute the task immediately (for testing)
DisablePause the task without deleting it
DeleteRemove the task permanently
PropertiesEdit triggers, actions, and conditions

The Microsoft subfolder contains tasks Windows creates automatically. Disabling something there without knowing what it does can affect system behavior — stick to tasks you created yourself.

FAQ

Q. My task is registered but never runs.

A. Work through these checks in order: ① Is the program path correct? ② If admin rights are needed, is Run with highest privileges checked? ③ Is the task being blocked by the "AC power only" or "idle" condition on the Conditions tab? ④ Check the History tab for error messages.

Q. A black Command Prompt window flashes briefly when my batch file runs.

A. That's the default behavior — the console window opens briefly. To hide it, wrap the batch in a PowerShell script and add the -WindowStyle Hidden flag, or use a VBScript wrapper.

Q. Can I see whether a task ran successfully?

A. Yes. Open the task's Properties → History tab to see past run dates and results (success or failure). If history isn't showing, go to Action → Enable All Tasks History in the menu.

Q. Will a task run while the PC is asleep?

A. Not by default. To wake the PC for a task, open the task's Conditions tab and enable Wake the computer to run this task.

Q. My PowerShell script fails with "cannot be loaded" error.

A. This is usually a PowerShell execution policy restriction. Add -ExecutionPolicy Bypass -File <path> to the task's argument field to work around it. For related reading, see How to Find Your Windows Product Key.

Summary

Windows Task Scheduler is a built-in automation tool that needs no extra software. Open it quickly with Win + R → taskschd.msc, then use the Create Basic Task wizard to set up a recurring schedule in minutes. For advanced scenarios, Create Task gives you full control over event triggers, power conditions, idle detection, and run-as-admin settings. Check the History tab to confirm tasks are running as expected, and build your automation workflows from there.