22description : Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
33external help file : MSFT_ScheduledTask_v1.0.cdxml-help.xml
44Module Name : ScheduledTasks
5- ms.date : 12/20/2016
5+ ms.date : 07/29/2021
66online version : https://docs.microsoft.com/powershell/module/scheduledtasks/get-scheduledtask?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
77schema : 2.0.0
88title : Get-ScheduledTask
@@ -21,13 +21,18 @@ Get-ScheduledTask [[-TaskName] <String[]>] [[-TaskPath] <String[]>] [-CimSession
2121```
2222
2323## DESCRIPTION
24- The ** Get-ScheduledTask** cmdlet gets the task definition object of a scheduled task that is registered on a computer.
24+ The ** Get-ScheduledTask** cmdlet gets the task definition object of a scheduled task that is
25+ registered on a computer.
2526
2627## EXAMPLES
2728
2829### Example 1: Get a scheduled task definition object
30+
31+ ``` powershell
32+ Get-ScheduledTask -TaskName "SystemScan"
2933```
30- PS C:\> Get-ScheduledTask -TaskName "SystemScan"
34+
35+ ``` Output
3136TaskPath TaskName State
3237-------- -------- --------
3338\ SystemScan Ready
@@ -36,8 +41,12 @@ TaskPath TaskName State
3641This command gets the definition object of the SystemScan scheduled task in the root folder.
3742
3843### Example 2: Get an array of scheduled task definition objects
44+
45+ ``` powershell
46+ Get-ScheduledTask -TaskPath "\UpdateTasks\*"
3947```
40- PS C:\> Get-ScheduledTask -TaskPath "\UpdateTasks\*"
48+
49+ ``` Output
4150TaskPath TaskName State
4251-------- -------- --------
4352\UpdateTasks UpdateApps Ready
@@ -51,7 +60,9 @@ This command gets an array of task definitions objects from the UpdateTasks fold
5160### Example 3: Get an array of scheduled task definition objects in multiple paths
5261``` powershell
5362Get-ScheduledTask -TaskPath "\Microsoft\Windows\Work Folders\","\Microsoft\Windows\Workplace Join\"
63+ ```
5464
65+ ``` Output
5566TaskPath TaskName State
5667-------- -------- -----
5768\Microsoft\Windows\Work Folders\ Work Folders Logon Synchroniza... Ready
@@ -109,7 +120,7 @@ Required: False
109120Position : 0
110121Default value : None
111122Accept pipeline input : True (ByPropertyName)
112- Accept wildcard characters : True
123+ Accept wildcard characters : False
113124` ` `
114125
115126### -TaskPath
@@ -126,7 +137,7 @@ Required: False
126137Position : 1
127138Default value : None
128139Accept pipeline input : True (ByPropertyName)
129- Accept wildcard characters : True
140+ Accept wildcard characters : False
130141` ` `
131142
132143### -ThrottleLimit
0 commit comments