How to create scheduled tasks with PowerShell on Windows 10
You can create, modify, and delete scheduled tasks with PowerShell commands, and in this guide, we’ll show you how to complete these tasks.
When you purchase through links on our site, we may earn an affiliate commission.Here’s how it works.
OnWindows 10, the Task Scheduler is a useful tool that has been around for many years, and it provides a friendly graphical interface to create automated routines. When you use this tool, you can automate tasks to launch applications, run specific commands, or execute scripts at a specific schedule or when a condition is met.
While the Task Scheduler app offers the most convenient environment to manage tasks on Windows 10, you can also use PowerShell to schedule, modify, and delete tasks, which can come in handy when you need to streamlined the process of creating tasks on several devices or when you need to create aPowerShell scriptthat needs to interact with the console.
In this Windows 10 guide, we will walk you through the basic steps to get started managing scheduled tasks using PowerShell commands.
How to create a scheduled task using PowerShell
To create a scheduled task with PowerShell on Windows 10, use these steps:
Once you complete the steps, the task will be created and scheduled according to your configuration.
How to change scheduled task using PowerShell
To modify an already scheduled task with PowerShell commands, use these steps:
The above example shows the steps to update the “triggers” and “actions” settings, but you can also update only one, three, or more settings. You only need to create the variable and then apply it with theSet-ScheduledTaskcommand. For example, using the above steps as a reference, you could skipstep No. 4, and then use this command to only update the schedule:
Get the Windows Central Newsletter
All the latest news, reviews, and guides for Windows and Xbox diehards.
.
How to delete scheduled task using PowerShell
To delete a scheduled task from the Task Scheduler with PowerShell, use these steps:
Once you complete the steps, if you receive an error indicating no task with that specific name, it means that the task has been deleted.
This guide focuses on the basic steps to start managing scheduled tasks using PowerShell. However, using PowerShell commands, you can manage many other settings. You can start and stop tasks, view task information, and much moreusing the many available modules.
In addition to using PowerShell, you can also create, modify, and remove tasks usingCommand Prompt.
Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.