Create Scheduled Tasks From PowerShell
Define actions, triggers and settings for a Windows scheduled task.
01Command
$ Register-ScheduledTask -TaskName Backup -Action (New-ScheduledTaskAction -Execute 'powershell.exe' -Argument '-File C:\backup.ps1') -Trigger (New-ScheduledTaskTrigger -Daily -At 3am)02What it does
Building a task from action and trigger objects makes it repeatable and reviewable, so the same definition can be deployed to many servers or stored in source control. Doing this in the Task Scheduler GUI per machine is slow and error-prone, which is the terminal advantage here.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Register-ScheduledTaskEvidence: Creates a scheduled task and its actions and triggers.
Last verified: 2026-10-13 · Category: System & Settings
06Related solutions
Use the System File Checker to verify every protected Windows system file against known-good copies and automatically replace the damaged ones.
Use Windows Package Manager to install, search, and upgrade thousands of applications from the community repository in one command.
Diagnose NTFS file system errors and bad sectors on any volume — including the system drive while Windows is running — before committing to a repair.