Планировщик заданий командная строка windows 10

You can create, edit, and delete scheduled tasks using Command Prompt without the need of ever opening Task Scheduler, and in this guide we'll show you how to do it.

Windows 10 ships with Task Scheduler, which is an advanced tool that allows you to create and run routines automatically. Using this tool, you can automate tasks to perform all sorts of things, including launching an app, running a specific command, or executing a script at a specified day and time, or when a particular condition is met using triggers.

Although there’s a graphical experience to use Task Scheduler, you can also use Command Prompt to create, edit, and delete tasks, which can come in handy in many situations. For instance, when you need to speed up the process to create the same task on multiple computers, and when building an application or script that needs to connect with the tool — just to name a few.

In this Windows 10 guide, we’ll walk you through the steps to get started managing scheduled tasks using the schtasks.exe tool on Command Prompt.

  • How to create a scheduled task using Command Prompt
  • How to change a scheduled task using Command Prompt
  • How to delete a scheduled task using Command Prompt

How to create a scheduled task using Command Prompt

To create a scheduled task with Command Prompt on Windows 10, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to create a daily task to run an app at 11:00am and press Enter:SyntaxSCHTASKS /CREATE /SC DAILY /TN "FOLDERPATHTASKNAME" /TR "C:SOURCEFOLDERAPP-OR-SCRIPT" /ST HH:MMExampleSCHTASKS /CREATE /SC DAILY /TN "MyTasksNotepad task" /TR "C:WindowsSystem32notepad.exe" /ST 11:00Quick tip: The folder path before the task name, under the /TN option, is not a requirement, but it’ll help you to keep your tasks separate. If you don’t specify a path, the task will be created inside the Task Scheduler Library folder.

  1. Type the following command to create a weekly task to run an app at 11:00am and press Enter:SyntaxSCHTASKS /CREATE /SC WEEKLY /D SUN /TN "FOLDERPATHTASKNAME" /TR "C:SOURCEFOLDERAPP-OR-SCRIPT" /ST HH:MMExampleSCHTASKS /CREATE /SC WEEKLY /D SUN /TN "MyTasksNotepad task" /TR "C:WindowsSystem32notepad.exe" /ST 11:00

  1. Type the following command to create a monthly task to run an app at 11:00am and press Enter:SyntaxSCHTASKS /CREATE /SC MONTHLY /D 15 /TN "FOLDERPATHTASKNAME" /TR "C:SOURCEFOLDERAPP-OR-SCRIPT" /ST HH:MMExampleSCHTASKS /CREATE /SC MONTHLY /D 15 /TN "MyTasksNotepad task" /TR "C:WindowsSystem32notepad.exe" /ST 11:00

  1. Type the following command to create a scheduled task that runs daily as a specific user and press Enter:SyntaxSCHTASKS /CREATE /SC DAILY /TN "FOLDERPATHTASKNAME" /TR "C:SOURCEFOLDERAPP-OR-SCRIPT" /ST HH:MM /RU USER-ACCOUNTExampleSCHTASKS /CREATE /SC DAILY /TN "MyTasksNotepad task" /TR "C:WindowsSystem32notepad.exe" /ST 11:00 /RU admin

Once you complete the steps, the task will run during the intervals you specified.

Task Scheduler create options

The command line version of Task Scheduler ships with many options allowing to customize many aspects of a task, and in this guide, we are using the following options to change a scheduled task:

  • /CREATE — specifies that you want to create a new an automated routine.
  • /SC — defines the schedule for the task. Options available, include MINUTE, HOURLY, DAILY, WEEKLY, MONTHLY, ONCE, ONSTART, ONLOGON, ONIDLE, and ONEVENT.
  • /D — specifies the day of the week to execute the task. Options available, include MON, TUE, WED, THU, FRI, SAT, and SUN. If you’re using the MONTHLY option, then you can use 1 — 31 for the days of the month. Also, there’s the wildcard «*» that specifies all days.
  • /TN — specifies the task name and location. The «MyTasksNotepad task» uses the «Notepad task» as the name and stores the task in the «MyTasks» folder. If the folder isn’t available, it’ll be created automatically.
  • /TR — specifies the location and the name of the task that you want to run. You can select an app or custom script.
  • /ST — defines the time to run the task (in 24 hours format).
  • /QUERY — displays all the system tasks.
  • /RU — specifies the task to run under a specific user account.

These are just some of the available options. You can learn more about the options to create a scheduled task running the

SCHTASKS /CREATE /?

command.

How to change a scheduled task using Command Prompt

To modify a scheduled task on Windows 10 with Command Prompt, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to change the time to run the task 9:00am and press Enter:SyntaxSCHTASKS /CHANGE /TN "FOLDERPATHTASKNAME" /ST HH:MMExampleSCHTASKS /CHANGE /TN "MyTasksNotepad task" /ST 09:00

  1. Type the following command to change the task user information and press Enter:SyntaxSCHTASKS /CHANGE /TN "FOLDERPATHTASKNAME" /RU NEW-USERNAMEExampleSCHTASKS /CHANGE /TN "MyTasksNotepad task" /RU admin2

  1. Type the following command to disable a scheduled task and press Enter:SyntaxSCHTASKS /CHANGE /TN "FOLDERPATHTASKNAME" /DISABLEExampleSCHTASKS /CHANGE /TN "MyTasksNotepad task" /DISABLEQuick tip: If you want to re-enable the task, you can use the same command, but make sure to use the /ENABLE option instead.

After completing the steps, the task will be modified with the information that you’ve specified.

Task Scheduler change options

In this guide, we are using the following options to create a scheduled task:

  • /CHANGE — specifies that you want to edit an existing task.
  • /TN — specifies the name and location of the task that you want to modify.
  • /ST — defines the new time to run the automated routine.
  • /DISABLE — disables the task.

These are just some of the available options. You can learn more about the options to change a scheduled task running the

SCHTASKS /CHANGE /?

command.

How to delete a scheduled task using Command Prompt

If you no longer need a particular task, you can delete it using these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to delete a scheduled task and press Enter:SyntaxSchTask /DELETE /TX "FOLDERPATHTASKNAME"ExampleSCHTASKS /DELETE /TN "MyTasksNotepad task"

  1. Press the Y key to confirm.

Once you complete the steps, the task will be removed, and it’ll no longer be available on your device.

Task Scheduler delete options

In this guide, we are using the following options to delete a scheduled task:

  • /DELETE — specifies that you want to delete an existing task.
  • /TN — specifies the name and location of the task that you want to delete.

We’re focusing this guide on Windows 10, but the ability to use Task Scheduler with Command Prompt has been around for a long time, which means that you can also use these steps on Windows 8.1 and Windows 7.

Get the best of Windows Central in in your inbox, every day!

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he’s a recognized member of the Microsoft MVP community.


Download Article


Download Article

Task Scheduler is a system tool available in all versions of Windows. It helps you schedule automated tasks that runs your programs or scripts at a specific time. For example, you can schedule your computer to automatically shut down in middle of the night. In this tutorial, you’ll learn all the methods of opening Task Scheduler in Windows 10.

  1. Image titled Search task scheduler.png

    1

    Launch it via the Windows search.

    • Click the search bar/icon on the taskbar. If it’s missing, then click on the Start
      Image titled Windowsstart.png

      button.

    • Type task scheduler.
    • Hit the Enter key or select the matching result.
  2. 2

    Run it via the Run dialog window.

    Image titled Taskschd.png
    • Press the Win+R keyboard keys at the same time.
    • Type taskschd.msc.
    • Hit the Enter key or click OK.

    Advertisement

  3. Image titled Start menu task scheduler

    3

    Use the All Apps list in the Start menu. The Start menu contains a list of all software installed on your PC. Task Scheduler is hidden under the «Windows Administrative Tools» folder of the list.

    • Click on the Start
      Image titled Windowsstart.png

      button.

    • Open the All apps list from the left of the Start menu (or scroll if you’ve configured it to show on the tiles page).
    • Click the «Windows Administrative Tools» folder.
    • Choose «Task Scheduler».
  4. Image titled Administrative tools.png

    4

    Start it from Control Panel. Press Win+R together, type control admintools, and hit Enter. Open «Task Scheduler» from the list of tools.

  5. Image titled Control schedtasks.png

    5

    Use Command Prompt. To launch Task Scheduler via the Command Prompt, follow these instructions:

    • Open Command Prompt. One way is to right-click the Start

      Image titled Windowsstart.png

      button and click Command Prompt.

    • Type control schedtasks.
    • Hit Enter.
  6. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Thanks for submitting a tip for review!

Things You’ll Need

  • Device running Windows 10

References

About This Article

Thanks to all authors for creating a page that has been read 64,388 times.

Is this article up to date?

Keep up with the latest tech with wikiHow’s free Tech Help Newsletter

Subscribe

You’re all set!


Download Article


Download Article

Task Scheduler is a system tool available in all versions of Windows. It helps you schedule automated tasks that runs your programs or scripts at a specific time. For example, you can schedule your computer to automatically shut down in middle of the night. In this tutorial, you’ll learn all the methods of opening Task Scheduler in Windows 10.

  1. Image titled Search task scheduler.png

    1

    Launch it via the Windows search.

    • Click the search bar/icon on the taskbar. If it’s missing, then click on the Start
      Image titled Windowsstart.png

      button.

    • Type task scheduler.
    • Hit the Enter key or select the matching result.
  2. 2

    Run it via the Run dialog window.

    Image titled Taskschd.png
    • Press the Win+R keyboard keys at the same time.
    • Type taskschd.msc.
    • Hit the Enter key or click OK.

    Advertisement

  3. Image titled Start menu task scheduler

    3

    Use the All Apps list in the Start menu. The Start menu contains a list of all software installed on your PC. Task Scheduler is hidden under the «Windows Administrative Tools» folder of the list.

    • Click on the Start
      Image titled Windowsstart.png

      button.

    • Open the All apps list from the left of the Start menu (or scroll if you’ve configured it to show on the tiles page).
    • Click the «Windows Administrative Tools» folder.
    • Choose «Task Scheduler».
  4. Image titled Administrative tools.png

    4

    Start it from Control Panel. Press Win+R together, type control admintools, and hit Enter. Open «Task Scheduler» from the list of tools.

  5. Image titled Control schedtasks.png

    5

    Use Command Prompt. To launch Task Scheduler via the Command Prompt, follow these instructions:

    • Open Command Prompt. One way is to right-click the Start

      Image titled Windowsstart.png

      button and click Command Prompt.

    • Type control schedtasks.
    • Hit Enter.
  6. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Thanks for submitting a tip for review!

Things You’ll Need

  • Device running Windows 10

References

About This Article

Thanks to all authors for creating a page that has been read 64,388 times.

Is this article up to date?

Keep up with the latest tech with wikiHow’s free Tech Help Newsletter

Subscribe

You’re all set!

Запуск заданий по расписанию в Windows 10

Системному администратору Windows приходится выполнять одни и те же операции каждый день — выполнять архивацию важных данных, диагностировать сеть, удалять временные файлы и т.д.

Вы хотели бы автоматизировать эти операции? Я думаю что ответ будет — Да. Специально для этих целей есть несколько возможностей в Windows 10 и в этой статье попробуем рассмотреть каждый из них.

Планирощик заданий Windows 10

Планировщик заданий Windows — это графическая утилита встроенная в операционную систему Windows 10, которая служит для запуска команд, сценариев и программ.

Как открыть планировщик задач WIndows 10? Открытите и настройка параметров в Windows 10 производится следующим образом: Пуск — Средства администрирования Windows — Назначенные задания. Но лично я открываю планировщик более коротким путем — В панели задач (таскбаре) во вкладке «Поиск» ввожу название программы «Планировщик», далее Windows 10 находит его. Задания в планировщике могут быть назначены на однократный, поминутный запуск, запуск через определенный интервал, т.е. можно настроить автозапуск программы по расписанию.Планировщик заданий Windows 10

Schtasks — планировщик заданий командной строки

Schtasks — планировщик заданий Windows через командную строку, это продвинутая утилита позволяет запускать задания через командную строку Windows 10. Утилита выполняет те же операции что и графическая, но управляется из командной строки, что позволяет через командные файлы запускать задания на выполнение. Хорошая возможность, не правда ли?

Запуск заданий в программе CronNT

CronNT — программа для запуска заданий из мира Linux. Гораздо удобнее пользоваться этой программой для запуска заданий — установить программу как службу Windows 10, настроить на автоматический запуск и наслаждаться. Параметры программы хранятся в файле CronNT.tab, ведется лог действий — так что запуск заданий можно будет отследить по журналу. Очень удобная программа — всем советую!

На этом обзорный лайфхак по планировщику Windows 10 завершен, если остались вопросы пишите комментарии в группе ВК и Инстаграм!

Как открыть планировщик заданий WindowsПланировщик заданий Windows служит для настройки автоматических действий при определенных событиях — при включении компьютера или входе в систему, в определенное время, при различных системных событиях и не только. Например, с его помощью можно настроить автоматическое подключение к Интернету, также, иногда, вредоносные программы добавляют свои задания в планировщик (см., например, здесь: Сам открывается браузер с рекламой).

В этой инструкции — несколько способов открыть планировщик заданий Windows 10, 8 и Windows 7. В целом, независимо от версии, методы будут практически одинаковыми. Также может быть полезно: Планировщик заданий для начинающих.

1. Использование поиска

Во всех последних версиях Windows есть поиск: на панели задач Windows 10, в меню Пуск Windows 7 и на отдельной панели в Windows 8 или 8.1 (панель можно открыть клавишами Win+S).

Запуск планировщика заданий с помощью поиска

Если в поле поиска начать вводить «Планировщик заданий», то уже после ввода первых символов вы увидите нужный результат, запускающий планировщик заданий.

В целом, использование поиска Windows для открытия тех элементов, для которых возникает вопрос «как запустить?» — наверное, самый эффективный метод. Рекомендую помнить о нем и использовать при необходимости. Одновременно, почти все системные инструменты можно запустить более, чем одним методом, о чем — далее.

2. Как запустить планировщик заданий с помощью диалогового окна «Выполнить»

Во всех версиях ОС от Microsoft этот способ будет одинаковым:

  1. Нажмите клавиши Win+R на клавиатуре (где Win — клавиша с эмблемой ОС), откроется диалоговое окно «Выполнить».
  2. Введите в него taskschd.msc и нажмите Enter — запустится планировщик заданий. Запуск планировщика заданий в окне Выполнить

Эту же команду можно ввести и в командной строке или PowerShell — результат будет аналогичным.

3. Планировщик заданий в панели управления

Запустить планировщик заданий можно и из панели управления:

  1. Откройте панель управления.
  2. Откройте пункт «Администрирование», если в панели управления установлен вид «Значки», или «Система и безопасность», если установлен вид «Категории». Администрирование в панели управления Windows
  3. Откройте «Планировщик заданий» (или «Расписание выполнения задач» для случая с просмотром в виде «Категорий»). Открыть планировщик заданий в панели управления

4.  В утилите «Управление компьютером»

Планировщик заданий присутствует в системе и как элемент встроенной утилиты «Управление компьютером».

  1. Запустите управление компьютером, для этого, например, можно нажать клавиши Win+R, ввести compmgmt.msc и нажать Enter.
  2. В левой панели, в разделе «Служебные программы» выберите «Планировщик заданий». Планировщик заданий в управлении компьютером

Планировщик заданий будет открыт прямо в окне «Управление компьютером».

5. Запуск планировщика заданий из меню Пуск

Планировщик заданий также присутствует и в меню Пуск Windows 10 и Windows 7. В 10-ке его можно найти в разделе (папке) «Средства администрирования Windows».

Запуск планировщика заданий из меню Пуск

В Windows 7 он находится в Пуск — Стандартные — Служебные.

Это не все способы запуска планировщика заданий, но, уверен, для большинства ситуаций описанных методов будет вполне достаточно. Если же что-то не получается или остаются вопросы, задавайте в комментариях, я постараюсь ответить.

Понравилась статья? Поделить с друзьями:
  • Планировщик задач в windows server 2016
  • Планировщик заданий выбранная задача 0 больше не существует windows 7
  • Планировщик задач в windows server 2008
  • Планировщик заданий в windows server 2019
  • Планировщик задач в windows server 2003 как открыть