• No se han encontrado resultados

Banco Ciudad De Buenos Aires

MINISTERIO DE EDUCACIÓN

1. Launch Task Scheduler by clicking Start, All Programs, Accessories, System Tools, and then Task Scheduler. Respond to the UAC prompt that appears. Task Scheduler appears.

2. Right-click Task Scheduler and then click Create Task.

3. On the General tab of the Create Task dialog, as shown in Figure 6-12, type a name for the task. You can configure the following security settings from this tab:

• By default, the task will run using the current user account with least privileges. To change the user, click the Change User Or Group button. To configure the task to run with elevated privileges (as if you had responded to a User Account Control [UAC] prompt), select the Run With Highest

Privileges check box.

• By default, new tasks only run when the user is logged on—this enables the task to interact with the user if necessary. If the task can run without user interaction, click Run Whether User Is Logged On Or Not. This will prevent tasks from displaying any user interface, which is useful if you are

scheduling a script to run and you don’t want the user to see the command prompt.

• If you select the Do Not Store Password check box, Task Scheduler will not store the credentials supplied on the local computer, but will discard them after properly authenticating the user. When required to run the task, the Task Scheduler service will use the Service-for-User (S4U) extensions to the Kerberos authentication protocol to retrieve the user’s token. Selecting the Do Not Store Password check box prevents the scheduled task from accessing network resources or encrypted files. Selecting the Do Not Store Password check box requires that the user have the Logon As A Batch Job user right.

• If you want the task to not be visible by default in Task Scheduler, select the Hidden check box.

Figure 6-12

4. On the Triggers tab of the Create Task dialog, click the New button to configure at least one trigger. If you don’t configure a trigger, the task will never run (but you could launch it manually). You can configure the following security settings from the New Trigger dialog, as shown in Figure 6-13:

9. If you click the Begin The Task list and select On A Schedule, you can configure the task to run on a regular basis, such as daily or weekly. To avoid running the same task on multiple computers at exactly the same moment (which would be useful if the task accesses a network resource that might become overloaded), select the Delay Task For Up To check box. 10. To configure tasks to run based on user actions, select At Log On, at

Startup, On Workstation Lock, or On Workstation Unlock from the Begin The Task list. To avoid slowing down the computer during the user’s task, select the Delay Task For check box.

11. To configure a task to run when the computer is not in use, click the Begin The Task list and select On Idle. This is useful for tasks that might make the computer less responsive when a user is actively using it.

12. To configure a task to run when a user connects or disconnects from a remote session, select On Connection To User Session or On Disconnect From User Session.

13. To run a task when an event appears, select On An Event from the Begin The Task list. Then, select Basic if your event criteria requires only

matching a specific event log, event source, or event ID. If you require more complex matching criteria, select Custom, and then click the New Event Filter button.

14. To configure a task to run when a task is created or edited, select At Task Creation/Modification from the Begin The Task list. This is primarily useful for auditing scheduled tasks or automating the management of Task

Figure 6-13

You can launch scheduled tasks using a wide variety of triggers.

5. On the Actions tab of the Create Task dialog, click the New button to configure at least one action. If you don’t configure an action, nothing will happen when the event is triggered. You can configure the following security settings from the New Action dialog, as shown in Figure 6-14:

15. If you select Start A Program from the Action menu, you can run an

application or script. Simply click the Browse button and select the program that you want to run.

16. If you select Send An E-mail from the Action menu, you can have the task send an e-mail when it is triggered. You will need to configure the From, To, Subject, and Text boxes, as well as the address of the mail server. To include a log file as part of the e-mail, click the Browse button and select the file.

17. If you select Display A Message from the Action menu, type a Title and Message. Task Scheduler will display the message to the user when the task is triggered.

Figure 6-14

You can run programs, send e-mails, or display a message to the user when a task is triggered.

6. On the Conditions tab of the Create Task dialog, as shown in Figure 6-15, you can specify criteria that must be met in addition to any triggers you have

configured. This enables you to configure the task to run only if the computer is idle for a specific amount of time, configure the task to stop if the user returns to the computer, run only if the mobile computer is plugged in, or run only if a specific network connection is available.

Figure 6-15

7. On the Settings tab of the Create Task dialog, as shown in Figure 6-16,you can configure:

18. Whether users can manually launch a task by selecting the Allow Task To Be Run On Demand check box.

19. The task to run as soon as possible after a scheduled start is missed (for example, if the computer is shut down) by selecting the Run Task As Soon As Possible After A Scheduled Start Is Missed.

20. The task to automatically restart if it fails by selecting the If The Task Fails, Restart Every check box and selecting an interval. This is useful if the task relies on an external resource that might not always be available, such as a network connection or an external hard disk.

21. Task Manager to stop the task if it runs longer than a specified amount of time by selecting the Stop The Task If It Runs Longer Than check box and the If The Running Task Does Not End When Requested, Force It To Stop check box.

22. Task Manager to delete automatically by selecting the If The Task Is Not Scheduled To Run Again, Delete It After check box.

23. Whether multiple instances of the task can run by selecting a non-default setting from the If The Task Is Already Running list.

Figure 6-16

Use the Settings tab to configure tasks to automatically restart. 8. Click OK to create your new task.

How to Create Tasks with the SchTasks.exe Command-Line