Lesson 4: Using Task Scheduler - MCSE Training Kit, Microsoft Windows 2000 Active Directory Services [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

MCSE Training Kit, Microsoft Windows 2000 Active Directory Services [Electronic resources] - نسخه متنی

Jill Spealman

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
توضیحات
افزودن یادداشت جدید








Lesson 4: Using Task Scheduler



Use Task Scheduler to schedule programs and batch files to run once, at regular intervals, or at specific times. You can use Task Scheduler to schedule any script, program, or document to start at a specified time and interval or when certain
operating system events occur. You can use Task Scheduler to complete many administrative tasks for you.



After this lesson, you will be able to


Use Task Scheduler to schedule tasks




Estimated lesson time: 25 minutes



Introduction to Task Scheduler



Windows 2000 saves scheduled tasks in the Scheduled Tasks folder, which is in the Control Panel folder in My Computer and on the Accessories, System Tools menu. In addition, you can access Scheduled Tasks on another computer by browsing that computer''s resources using My Network Places. This allows you to move tasks from one computer to another. For example, you can create task files for maintenance and then add them to a user''s computer as needed.


Use Task Scheduler to




Run maintenance utilities at specific intervals


Run programs when there is less demand for computer resources



Options



Use the Scheduled Task Wizard to schedule tasks. You access the wizard in
the Scheduled Tasks folder by double-clicking Add Scheduled Task. Table 3.6
describes the options that you can configure in the Scheduled Task Wizard.


Table 3.6 Scheduled Task Wizard Options






























Option Description

Program to run

The applications to schedule. Select the applications to schedule from a list of
applications that are registered with Windows 2000, or click Browse to specify any program,
script, or batch file.

Task name

A descriptive name for the task.

Frequency

How often Windows 2000 will perform the task. You can select daily, weekly, monthly, one time only,
when the computer starts, or when you log on.

Time and date

The start time and start date for the task to occur. If applicable, you can enter the context-sensitive
date information on which to repeat the task.

Name and password

A user name and password. You can enter your user name and password or another user name and password
to have the application run under the security settings for that user account.


If the user account that you used to log on does not have the rights that are required by the scheduled task, you can use another user account that does have the required rights. For example, you can run a scheduled backup by using a user account that has the required rights to back up data but does not have other administrative privileges.


Advanced properties

Select this check box if you want the wizard to display the
Advanced Properties dialog box so that you can configure
additional properties after you click Finish.



Advanced Properties



In addition to the options that are available in the Scheduled Task Wizard, you can set
several additional options for tasks. You can change options that you set with the Scheduled Task
Wizard or set additional advanced options by configuring advanced properties for the task.


Table 3.7 describes the tabs in the Advanced Properties dialog box for the
scheduled task.


Table 3.7 Scheduled Task Wizard Advanced Preperties Dialog Box Tabs






















Tab Description

Task

Change the scheduled task, add parameters required by the task, or change the user account that is
used to run the task. You can also turn the task on and off.

Schedule

Set and display multiple schedules for the same task. You can set the date, time, and number of
repeat occurrences for the task. For example, you can set up a task to run every Friday at 10:00 P.M.

Settings

Set options that can delete or stop a task, start or stop a task based on idle or non-idle time,
start or stop a task if the computer is running on batteries, and wake the computer to run a task.

Security

Change the list of users and groups that have permission to perform the task, or change the permissions
for a specific user or group.





Practice: Using Task Scheduler



After completing this practice, you will be able to




Schedule tasks to start automatically


Configure Task Scheduler options




In this practice, you schedule Disk Defragmenter to start at a predetermined time. You also configure Task Scheduler options.


To schedule a task to start automatically




Double-click My Computer, double-click Control Panel, and then double-click Scheduled Tasks.


Windows 2000 opens the Scheduled Tasks folder. Because no tasks are
currently scheduled, only the Add Scheduled Task entry appears.


Double-click Add Scheduled Task.


The Scheduled Task Wizard appears.


Click Next.


Windows 2000 displays a list of currently installed programs. To schedule a program that is not registered with Windows 2000, you would click Browse to locate the program.


Click Browse.


The Select Program To Schedule dialog box appears.


Double-click WINNT, and then double-click system32.


Double-click DFRG.MSC.


In the name box, type Launch Disk Defragmenter, as shown in Figure 3.4.


The Name box allows you to enter a description that is more intuitive than the program name.
Windows 2000 displays this name in the Scheduled Tasks folder when you finish the wizard.


Click to view at full size.


Figure 3.4 Using the Scheduled Task Wizard


Click One Time Only and then click Next.


In the Start Time box, set the time to 4 minutes after the current system time and make a note of this time.


To confirm the current system time, look at the taskbar. Do not change the entry in the Start Date box.


Click Next.


The wizard requires you to enter the name and password of a user account. When Task Scheduler runs the scheduled task, the program receives all of
the rights and permissions of the user account that you enter here. The program is also bound by any restrictions on the user account. Notice that your user name, SERVER1\Administrator, is already filled in as the default. (If your computer name is not Server1, Server1 will be replaced by your computer''s name.) You must type the correct password for the user account in both password boxes before you can continue.


You will schedule the console to run with your administrative privileges.


In both the Enter The Password box and the Confirm Password box, type password.


Click Next.


Do not check the box to open the Advanced Properties dialog box for this task. You will review these properties in the next procedure.


Click Finish.


Notice that the wizard added the task to the list of scheduled tasks.


To confirm that you scheduled the task successfully, wait for the time that you configured in Step 9. Disk Defragmenter will start.


Close Disk Defragmenter.




To configure advanced Task Scheduler options




In the Scheduled Tasks folder, double-click Launch Disk Defragmenter.


Windows 2000 displays the Launch Disk Defragmenter dialog box. Notice the tabs and review the options
on the tabs. These are the same options that are available if you select the check box for setting advanced
options on the last page of the Scheduled Task Wizard. Do not change any of the settings.


Click the Settings tab.


Review the options that are available on the Settings tab.


Select the Delete The Task If It Is Not Scheduled To Run Again check box.


Click the Schedule tab, and then set the start time for 2 minutes after the current system time.


Make a note of this time.


Click OK.


To confirm that you scheduled the task successfully, wait for the time that you set in Step 4 of
this procedure. Disk Defragmenter will start.


Close Disk Defragmenter.


Notice that the scheduled event is no longer in the Scheduled Tasks folder. The option to
automatically delete a task after it finished is useful for cleaning up after tasks that only need to run
once.


Close the Scheduled Tasks folder.


Log off Windows 2000.



Lesson Summary



In this lesson you learned that you can use the Task Scheduler to schedule programs and batch files to
run once, at regular intervals, at specific times, or when certain operating system events occur. Windows
2000 saves scheduled tasks in the Scheduled Tasks folder, which is in the Control Panel folder in My
Computer. Once you have scheduled a task to run, you can modify any of the options or
advanced features for the task, including the program to be run.


In addition, you learned that you can access Scheduled Tasks on another computer by browsing that
computer''s resources using My Network Places. This
allows you to move tasks from one computer to another.
For example, you can create task files for maintenance and then add them to a user''s computer as needed.
In the practice portion of this lesson, you used the Scheduled Task
Wizard to schedule Disk Defragmenter to launch at a specified time.


/ 113