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.
CommonParameters:
-Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable,
-OutBuffer -PipelineVariable, -OutVariable.
Get-ScheduledJob can be piped into Get-JobTrigger, to obtain a list of job triggers.
Examples
Get all scheduled jobs:
C:\PS> Get-ScheduledJob
Get all scheduled jobs on the computer that have names which include "Backup" or "Archive":
C:\PS> 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
Related PowerShell Cmdlets:
Scheduler cmdlets - Get/Set scheduled jobs.
Disable-ScheduledJob - Disable a scheduled job.
Enable-ScheduledJob - Enable a scheduled job.