Admin Power
Chapter 12 of 18
Chapter 12: Let the Computer Do the Work on Time
This chapter is about scheduled tasks, which are jobs your computer runs for you at a set time. You will learn how to look at the tasks that already exist, pause one safely, and build a new one from scratch. That matters because a lot of real admin work is not done by hand every day, it is done on a schedule. You do not need to be an expert to start, you only need to understand four parts: what runs, when it runs, who runs it, and what happens if something goes wrong. After this chapter, you will be able to list tasks, check their state, turn a task off and back on, and create a simple daily task that you have tested yourself.
2 lessons 3 learning objectives 7 related commands
Topics at a glance: Show, disable, and enable scheduled tasks, Create a scheduled task.
Where this chapter fits
This chapter comes after Chapter 11: Manage People, Computers, and Names in the journey, so ideas from that chapter will feel familiar here.
After this chapter comes Chapter 13: Control Who Gets In and Out.
Learning objectives
By the end of this chapter, you will be able to:
- List scheduled tasks and read their state
- Enable and disable a task safely
- Create a task with a trigger and an action
Lessons in this chapter
Work through the lessons in order. Each lesson page has explanations, examples, common mistakes, and a knowledge check.
Lesson 1: Show, disable, and enable scheduled tasks
Get-ScheduledTask lists tasks on the computer. Disable stops a task from running without deleting it, and Enable turns it back on. Disabling is the safe way to pause a task.
3 things to learn in this lesson
Lesson 2: Create a scheduled task
Creating a task means describing four things: what runs, when it runs, who it runs as, and under what conditions. PowerShell builds each part separately, then registers the task.
3 things to learn in this lesson
Related command references
These command pages are linked to lessons in this chapter. Each command page has its syntax, parameters, and examples.
Get-ScheduledTask
Lists scheduled tasks, with names, states, and paths.
From the lesson: Show, disable, and enable scheduled tasks
Enable-ScheduledTask
Enables a disabled scheduled task.
From the lesson: Show, disable, and enable scheduled tasks
Disable-ScheduledTask
Disables a scheduled task without deleting it.
From the lesson: Show, disable, and enable scheduled tasks
Register-ScheduledTask
Creates a scheduled task from an action, trigger, and settings.
From the lesson: Create a scheduled task
Start-ScheduledTask
Runs a scheduled task once, on demand.
From the lesson: Create a scheduled task
New-ScheduledTaskAction
Builds the action part of a scheduled task.
From the lesson: Create a scheduled task
New-ScheduledTaskTrigger
Builds the trigger part of a scheduled task.
From the lesson: Create a scheduled task
Tip: read the lesson first, then use the command page as a quick reference.