Skip to content

Commit 47b011a

Browse files
authored
Registerd task has wrong parameter defined
1 parent 198d527 commit 47b011a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docset/windows/scheduledtasks/new-scheduledtasktrigger.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The second command creates a scheduled task trigger that starts every day at 3:0
8989
PS C:\>$Stt = New-ScheduledTaskTrigger -Daily -At 3am
9090
9191
The third command registers the scheduled task Task01 to run the task action named Cmd every day at 3:00 A.M.
92-
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Settings $Stt
92+
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Trigger $Stt
9393
```
9494

9595
This example registers a scheduled task that starts every day.
@@ -104,7 +104,7 @@ The second command creates a scheduled task trigger that starts every 3 days at
104104
PS C:\>$Stt = New-ScheduledTaskTrigger -Daily -DaysInterval 3 -At 3am
105105
106106
The third command registers the scheduled task Task01 to run the task action named cmd every 3 days at 3:00 A.M.
107-
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Settings $Stt
107+
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Trigger $Stt
108108
```
109109

110110
This example registers a scheduled task that starts every 3 days.
@@ -119,7 +119,7 @@ The second command creates a scheduled task trigger that starts every other Sund
119119
PS C:\>$Stt = New-ScheduledTaskTrigger -Weekly -WeeksInterval 2 -DaysOfWeek Sunday -At 3am
120120
121121
The third command registers the scheduled task Task01 to run the task action named Cmd every other Sunday at 3:00 A.M.
122-
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Settings $Stt
122+
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Trigger $Stt
123123
```
124124

125125
This example registers a scheduled task that starts every other week.
@@ -134,7 +134,7 @@ The second command creates a scheduled task trigger that starts when a user logs
134134
PS C:\>$Stt = New-ScheduledTaskTrigger -AtLogon
135135
136136
The third command registers the scheduled task Task01 to run the task action named Cmd when a user logs on.
137-
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Settings $Stt
137+
PS C:\>Register-ScheduledTask Task01 -Action $Sta -Trigger $Stt
138138
```
139139

140140
This example registers a scheduled task that starts when a user logs on.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy