@@ -89,7 +89,7 @@ The second command creates a scheduled task trigger that starts every day at 3:0
89
89
PS C:\>$Stt = New-ScheduledTaskTrigger -Daily -At 3am
90
90
91
91
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
93
93
```
94
94
95
95
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
104
104
PS C:\>$Stt = New-ScheduledTaskTrigger -Daily -DaysInterval 3 -At 3am
105
105
106
106
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
108
108
```
109
109
110
110
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
119
119
PS C:\>$Stt = New-ScheduledTaskTrigger -Weekly -WeeksInterval 2 -DaysOfWeek Sunday -At 3am
120
120
121
121
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
123
123
```
124
124
125
125
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
134
134
PS C:\>$Stt = New-ScheduledTaskTrigger -AtLogon
135
135
136
136
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
138
138
```
139
139
140
140
This example registers a scheduled task that starts when a user logs on.
0 commit comments