How to prevent command window from appearing on scheduled tasks on Windows 10

A flashing window appears when running a scheduled task? Here's how to run tasks completely hidden.

Task Scheduler with option to prevent command window

On Windows 10, sometimes it’s necessary to automate certain routine tasks (e.g., mount a network drive, launch an app, run a batch file, show a message) and run them at specific scheduled times. Usually, you use Task Scheduler, as it’s a tool designed to execute task based on a wide range of criteria.

The only caveat is that while creating a task you can check a “Hidden” option, when the task runs the Task Scheduler will show a command window on the desktop briefly, which is not only annoying, but it’s also a bad user experience.

If you’re using the Task Scheduler on Windows 10 to run tasks on a specific time or during a trigger event and a command window keeps appearing every time the task runs, it’s possible to configure the task to stop producing a command window.

In this guide, you’ll learn the steps to configure a scheduled task to run hidden (silent) without flashing a command window every time it runs.

How to configure schedule a task to run hidden using Task Scheduler

  1. Open Task Scheduler.
  2. Right-click the Task Scheduler Library folder.
  3. Click Create Task.
  4. Task Scheduler new task option
    Task Scheduler new task option
  5. In the “General” tab, under the “Security options” section, select the Run whether user is logged on or not option. (This is the option that will make the command window not to appear when the task runs automatically.)
  6. Check the Do not store password option. (This is an optional step. If you don’t select this option, you’ll need to supply the appropriate credentials to run the task.)
  7. New task configuration to run hidden
    New task configuration to run hidden

Once you’ve selected the correct options, continue configuring the task with the command you want to run and schedule, but now every time the scheduled tasks run users will no longer see a command window flashing.

You can always test the configuration by right-clicking the task and selecting Run.

While we’re focusing this guide on Windows 10, you can also use these steps on Windows 8.1 and Windows 7.