PowerShell Logo Small

Get-ScheduledTask



This is the built-in help made by Microsoft for the command 'Get-ScheduledTask', 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 the task definition object of a scheduled task that is registered on the local computer.

SYNTAX


Get-ScheduledTask [[-TaskName] <String[]>] [[-TaskPath] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-ScheduledTask cmdlet gets the task definition object of a scheduled task that is registered on a computer.





<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287549
Disable-ScheduledTask
Enable-ScheduledTask
Export-ScheduledTask
New-ScheduledTask
Register-ScheduledTask
Set-ScheduledTask
Start-ScheduledTask
Stop-ScheduledTask
Unregister-ScheduledTask
Get-ScheduledTaskInfo

REMARKS

<

Examples


Example 1: Get a scheduled task definition object

PS C:\> Get-ScheduledTask -TaskName "SystemScan"
TaskPath TaskName State
-------- -------- --------
\ SystemScan Ready



This command gets the definition object of the SystemScan scheduled task in the root folder.




Example 2: Get an array of scheduled task definition objects

PS C:\> Get-ScheduledTask -TaskPath "\UpdateTasks\"
TaskPath TaskName State
-------- -------- --------
\UpdateTasks UpdateApps Ready
\UpdateTasks UpdateDrivers Ready
\UpdateTasks UpdateOS Disabled

\UpdateTasks UpdateSignatures Running



This command gets an array of task definitions objects from the UpdateTasks folder.