Skip to content

Commit 6a3f002

Browse files
committed
Merge branch 'fix/2506-add-example' of https://github.com/velkovb/windows-powershell-docs into fix/2506-add-example
2 parents 483d878 + 3d054f9 commit 6a3f002

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

docset/winserver2012-ps/scheduledtasks/New-ScheduledTask.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ PS C:\> Register-ScheduledTask 'baz' -InputObject $task
6363
6464
```
6565

66-
This example creates and registers a scheduled task that runs two powershell scripts daily at 09:15 AM.
66+
This example creates and registers a scheduled task that runs two PowerShell scripts daily at 09:15 AM.
6767

6868
## PARAMETERS
6969

docset/winserver2012r2-ps/scheduledtasks/New-ScheduledTask.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ PS C:\> $trigger = New-ScheduledTaskTrigger -AtLogon
3535
PS C:\> $principal = "Contoso\Administrator"
3636
PS C:\> $settings = New-ScheduledTaskSettingsSet
3737
PS C:\> $task = New-ScheduledTask -Action $action -Principal $principal -Trigger $trigger -Settings $settings
38-
PS C
38+
PS C:\> Register-ScheduledTask T1 -InputObject $task
39+
```
3940

4041
In this example, the set of commands uses several cmdlets and variables to define and then register a scheduled task.
4142

@@ -64,7 +65,7 @@ PS C:\> Register-ScheduledTask 'baz' -InputObject $task
6465
6566
```
6667

67-
This example creates and registers a scheduled task that runs two powershell scripts daily at 09:15 AM.
68+
This example creates and registers a scheduled task that runs two PowerShell scripts daily at 09:15 AM.
6869

6970
## PARAMETERS
7071

docset/winserver2016-ps/scheduledtasks/New-ScheduledTask.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ PS C:\> $trigger = New-ScheduledTaskTrigger -AtLogon
3636
PS C:\> $principal = "Contoso\Administrator"
3737
PS C:\> $settings = New-ScheduledTaskSettingsSet
3838
PS C:\> $task = New-ScheduledTask -Action $action -Principal $principal -Trigger $trigger -Settings $settings
39-
PS C
39+
PS C:\> Register-ScheduledTask T1 -InputObject $task
40+
```
4041

4142
In this example, the set of commands uses several cmdlets and variables to define and then register a scheduled task.
4243

@@ -65,7 +66,7 @@ PS C:\> Register-ScheduledTask 'baz' -InputObject $task
6566
6667
```
6768

68-
This example creates and registers a scheduled task that runs two powershell scripts daily at 09:15 AM.
69+
This example creates and registers a scheduled task that runs two PowerShell scripts daily at 09:15 AM.
6970

7071
## PARAMETERS
7172

docset/winserver2019-ps/scheduledtasks/New-ScheduledTask.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ PS C:\> $trigger = New-ScheduledTaskTrigger -AtLogon
3636
PS C:\> $principal = "Contoso\Administrator"
3737
PS C:\> $settings = New-ScheduledTaskSettingsSet
3838
PS C:\> $task = New-ScheduledTask -Action $action -Principal $principal -Trigger $trigger -Settings $settings
39-
PS C
39+
PS C:\> Register-ScheduledTask T1 -InputObject $task
40+
```
4041

4142
In this example, the set of commands uses several cmdlets and variables to define and then register a scheduled task.
4243

@@ -65,7 +66,7 @@ PS C:\> Register-ScheduledTask 'baz' -InputObject $task
6566
6667
```
6768

68-
This example creates and registers a scheduled task that runs two powershell scripts daily at 09:15 AM.
69+
This example creates and registers a scheduled task that runs two PowerShell scripts daily at 09:15 AM.
6970

7071
## PARAMETERS
7172

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ PS C:\> $trigger = New-ScheduledTaskTrigger -AtLogon
3636
PS C:\> $principal = "Contoso\Administrator"
3737
PS C:\> $settings = New-ScheduledTaskSettingsSet
3838
PS C:\> $task = New-ScheduledTask -Action $action -Principal $principal -Trigger $trigger -Settings $settings
39-
PS C
39+
PS C:\> Register-ScheduledTask T1 -InputObject $task
40+
```
4041

4142
In this example, the set of commands uses several cmdlets and variables to define and then register a scheduled task.
4243

@@ -65,7 +66,7 @@ PS C:\> Register-ScheduledTask 'baz' -InputObject $task
6566
6667
```
6768

68-
This example creates and registers a scheduled task that runs two powershell scripts daily at 09:15 AM.
69+
This example creates and registers a scheduled task that runs two PowerShell scripts daily at 09:15 AM.
6970

7071
## PARAMETERS
7172

0 commit comments

Comments
 (0)