![]() If you are using the "Weekly" option, then you also provide the "-DaysInterval" or "-DaysOfWeek" information followed by the corresponding information. And for the time, you can use the 12 or 24-hour format. The $trigger is a variable, and it does not matter the name.For example, this example tells Task Scheduler to run the task daily at 11 am: $trigger = New-ScheduledTaskTrigger -Daily -At 11am Quick note: For "SETTING," you can use -Once, -Daily, -Weekly, or -Monthly. Type the following command to create a variable that stores the schedule information for the task and press Enter: $trigger = New-ScheduledTaskTrigger -SETTING -At TIMEIn the command, make sure to replace SETTING and TIME with the details on when you want to run the task.Source: Windows Central (Image credit: Source: Windows Central)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |