Scheduled Task

noun

say it: “SKEJ-oold TASK” /ˈskɛdʒuld ˈtæsk/

A job Windows runs by itself at a set time or on an event, made of a trigger that says when and an action that says what.

What is a scheduled task?

A scheduled task is an alarm clock with a note stuck to it. The trigger is when it rings: every day at 6 PM, at sign-in, when the PC starts. The action is the note: which program to run and what to hand it. Windows runs dozens of its own, and one you register runs your backup every evening whether you remember or not.

$trigger = New-ScheduledTaskTrigger -Daily -At 6pm
$action  = New-ScheduledTaskAction -Execute 'pwsh.exe' -Argument '-NoProfile -NonInteractive -File "C:\Users\Sam\Scripts\Backup-SchoolWork.ps1"'

In a sentence

  • “A scheduled task that runs as you needs no administrator window.”
  • “Sam's backup runs every evening at 6 PM as a scheduled task.”

Level: Journeyman · More Operating System terms at this level

Updated