PowerShell Logo Small

Get-ScheduledJob



This is the built-in help made by Microsoft for the command 'Get-ScheduledJob', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets scheduled jobs on the local computer.

SYNTAX


Get-ScheduledJob [[-Id] <Int32[]>] [<CommonParameters>]
Get-ScheduledJob [-Name] <String[]> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-ScheduledJob cmdlet gets scheduled jobs on the local computer. Get-ScheduledJob gets only scheduled jobs that are created by the current user using the
Register-ScheduledJob cmdlet.


Although jobs that are created by using the Register-ScheduledJob cmdlet appear in Task Scheduler, Get-ScheduledJob gets only scheduled jobs. It does not get scheduled tasks
created in Task Scheduler.


Without parameters, Get-ScheduledJob gets all scheduled jobs on the computer. You can use the parameters of Get-ScheduledJob to get scheduled jobs by ID or name and examine
them or pipe them to other cmdlets.


Get-ScheduledJob is one of a collection of job scheduling cmdlets in the PSScheduledJob module that is included in Windows PowerShell.


For more information about Scheduled Jobs, see the About topics in the PSScheduledJob module. Import the PSScheduledJob module and then type: Get-Help about_Scheduled* or
see about_Scheduled_Jobs.


This cmdlet is introduced in Windows PowerShell 3.0.





<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=290626
about_Scheduled_Jobs
Add-JobTrigger
Disable-JobTrigger
Disable-ScheduledJob
Enable-JobTrigger
Enable-ScheduledJob
Get-JobTrigger
Get-ScheduledJob
Get-ScheduledJobOption
New-JobTrigger
New-ScheduledJobOption
Register-ScheduledJob
Remove-JobTrigger
Set-JobTrigger
Set-ScheduledJob
Set-ScheduledJobOption
Unregister-ScheduledJob

REMARKS

<

Examples


Example 1: Get all scheduled jobs

PS C:\>Get-ScheduledJob



This command gets all scheduled jobs on the local computer.




Example 2: Get scheduled jobs by name

PS C:\>Get-ScheduledJob -Name *Backup*, *Archive*



This command gets all scheduled jobs on the computer that have names that include "Backup" or "Archive". This command format lets you search for particular jobs.




Example 3: Get scheduled jobs on remote computers

PS C:\>Invoke-Command -ComputerName (Get-Content Servers.txt) {Get-ScheduledJob}



This command gets all scheduled jobs on the computers that are listed in the Servers.txt file. The command uses the Invoke-Command cmdlet to run a Get-ScheduleJob command on
each computer.




Example 4: Pipe scheduled jobs to other cmdlets

PS C:\>Get-ScheduledJob DailyBackup, WeeklyBackup | Get-JobTrigger



This command gets the job triggers of the DailyBackup and WeeklyBackup scheduled jobs. It uses the Get-ScheduledJob cmdlet to get the scheduled jobs and the Get-JobTrigger
cmdlet to get the job triggers of the scheduled jobs.