In the Active Tasks pane, you can double-click any task to jump to its entry
in the hierarchical library, or click the tiny arrow next to the Task Scheduler
Library folder on your left to expand the branches and browse the categories.
Once you??™re in the library, highlight a task to view its details in the
pane below, or double-click it to edit its properties.
Windows PowerShell | 573
Scripting and
Automation
You can also create a new task on the fly from the Command Prompt (or the
Address Bar, for that matter). Use the at command, like this:
at 11:15 /interactive c:\scripts\myscript.vbs
Naturally, you??™ll want to replace 11:15 with the time you actually want the
task to run, and replace c:\scripts\myscript.vbs with the full path and filename
of the application or script you wish to schedule. You can also use the
/every option to specify a repeating day or date, or the /next option to specify
only a single day:
at 15:45 /interactive /every:tuesday,thursday c:\scripts\myscript.vbs
at 15:45 /interactive /next:saturday c:\scripts\myscript.vbs
Type at /? at the Command Prompt for more options. To specify which
user account is responsible for running tasks created with the at command,
open Task Scheduler, click Task Scheduler (Local) on the left, and then
click the AT Service Account Configuration link in the Actions pane to your
right.
Task Scheduler does have its pitfalls. For one, it??™s a rather passive service,
and while that??™s an aspect I like, at least ideologically, it means that tasks
can very easily be missed.
Pages:
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797