Skip to content

Commit f0faea6

Browse files
authored
Merge branch 'master' into fix/2017-add-example
2 parents 5f98cfe + d7b8c05 commit f0faea6

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

docset/winserver2022-ps/scheduledtasks/Get-ScheduledTask.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
33
external help file: MSFT_ScheduledTask_v1.0.cdxml-help.xml
44
Module Name: ScheduledTasks
5-
ms.date: 12/20/2016
5+
ms.date: 07/29/2021
66
online version: https://docs.microsoft.com/powershell/module/scheduledtasks/get-scheduledtask?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: 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
3136
TaskPath TaskName State
3237
-------- -------- --------
3338
\ SystemScan Ready
@@ -36,8 +41,12 @@ TaskPath TaskName State
3641
This 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
4150
TaskPath 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
5362
Get-ScheduledTask -TaskPath "\Microsoft\Windows\Work Folders\","\Microsoft\Windows\Workplace Join\"
63+
```
5464

65+
```Output
5566
TaskPath TaskName State
5667
-------- -------- -----
5768
\Microsoft\Windows\Work Folders\ Work Folders Logon Synchroniza... Ready
@@ -109,7 +120,7 @@ Required: False
109120
Position: 0
110121
Default value: None
111122
Accept pipeline input: True (ByPropertyName)
112-
Accept wildcard characters: True
123+
Accept wildcard characters: False
113124
```
114125
115126
### -TaskPath
@@ -126,7 +137,7 @@ Required: False
126137
Position: 1
127138
Default value: None
128139
Accept pipeline input: True (ByPropertyName)
129-
Accept wildcard characters: True
140+
Accept wildcard characters: False
130141
```
131142
132143
### -ThrottleLimit

0 commit comments

Comments
 (0)