List, add, edit, delete Windows Scheduled Tasks from the command-line

80,006

Solution 1

See This link at Microsoft on using at and schtasks to manage scheduled tasks from the command line.

Solution 2

schtasks.exe /change /TN pepe /ENABLE
Share:
80,006
Jon
Author by

Jon

Updated on September 17, 2022

Comments

  • Jon
    Jon over 1 year

    Is there a command-line tool that can be used to programatically list, add, edit and delete Windows Scheduled tasks?

    I realize that there are better alternatives to Scheduled Tasks, but I need to make changes to an existing set of tasks on a large number of PCs and would like to script it.

    Thanks, Jon

  • Vadzim
    Vadzim over 6 years
  • Wayne Phipps
    Wayne Phipps about 5 years
    Quote: Schtasks replaces At.exe, a tool included in previous versions of Windows. Although At.exe is still included in the Windows Server 2003 family, schtasks is the recommended command-line task scheduling tool. Link: docs.microsoft.com/en-us/windows-server/administration/…