Get scheduled jobs on the local computer.
Syntax Get-ScheduledJob [[-Id] Int32[]] [CommonParameters] Get-ScheduledJob [-Name] String[] [CommonParameters] Key -Id Get only the scheduled jobs with the specified identification number (ID). Enter one or more IDs of scheduled jobs on the computer. By default, Get-ScheduledJob gets all scheduled jobs on the computer. -Name Get only the scheduled jobs with the specified names. Enter one or more names of scheduled jobs on the computer. Wildcards are supported. By default, Get-ScheduledJob gets all scheduled jobs on the computer.
Get-ScheduledJob can be piped into Get-JobTrigger, to obtain a list of job triggers.
Get all scheduled jobs:
PS C:\> Get-ScheduledJob
Get all scheduled jobs on the computer that have names which include "Backup" or "Archive":
PS C:\> Get-ScheduledJob -Name *Backup*, *Archive*
Get all scheduled jobs on the computers listed in Servers.txt The command uses Invoke-Command to run a Get-ScheduleJob command on each remote computer:
PS C:\> Invoke-Command -ComputerName (Get-Content Servers.txt) {Get-ScheduledJob}
“New York is an exciting town where something is happening all the time, most unsolved” ~ Johnny Carson
Scheduler cmdlets - Get/Set scheduled jobs.
Disable-ScheduledJob - Disable a scheduled job.
Enable-ScheduledJob - Enable a scheduled job.