Scheduled Tasks

Download Report

Transcript Scheduled Tasks

BZUPAGES.COM
PRESENTED TO:
SIR AHMED KARIM
PRESENTED BY:
MUHAMMAD FAISAL RAO
Malik Shabaz
Asif
BIT-07-49
Department Of Information Technology
Institute Of Computing
B.Z.U Multan
BZUPAGES.COM
BZUPAGES.COM
 Scheduled Tasks is a task scheduler that’s installed with Windows Server
2003.
 You can use it to launch applications and utilities on a schedule you
devise.
 The best use of Scheduled Tasks is to make sure maintenance tools run
regularly.
 The tasks you create are files (with the extension .job) that can be
exchanged via e-mail, or copied to remote computers, permitting you to
create and run scheduled tasks on other computers.
BZUPAGES.COM

The .job task files are located in %System Root%\Tasks.

You can launch this utility from Control Panel.

The Scheduled Tasks window opens to display an icon named Add
Scheduled Task, along with icons for any existing tasks.
Be sure the date and time of the computer are correct when
you’re running scheduled tasks.
BZUPAGES.COM
The utility runs as a DLL launched by explorer.exe, with the path
statement:
%System Root%\explorer.exe
::{20D04FE0-3AEA-1069-A2D808002B30309D}\::{21EC20203AEA-1069-A2DD-08002B30
309D}\::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
BZUPAGES.COM
where:



{20D04FE0-3AEA-1069-A2D8-08002B30309D} is a CLSID for My
Computer objects.
{21EC2020-3AEA-1069-A2DD-08002B30309D} is a CLSID for
Control Panel objects.
{D6277990-4C6A-11CF-8D87-00AA0060F5BF} is a CLSID for a
variety of icons and objects referencing mstask.dll.
BZUPAGES.COM
Open the Add Scheduled Task icon to launch the wizard, and click
Next to move past the welcome window. The wizard presents a list
of the application files on your computer
BZUPAGES.COM
BZUPAGES.COM
BZUPAGES.COM

If you want to leap right to the Properties dialog to configure your task,
instead of stepping through the wizard, use one of these methods to create
a new task:
BZUPAGES.COM



Choose File | New | Scheduled Task in the Scheduled Tasks window.
Right-click a blank spot in the Scheduled Tasks window and choose
New |Scheduled Task from the shortcut menu.
A new icon appears in the window, titled New Task. The title is in
Edit mode so that you can enter a name for the new task. After you
name the task, right-click its icon and choose Properties from the
shortcut menu to open the task’s Properties dialog.
BZUPAGES.COM





To change the properties of any task, open the
Scheduled Tasks window and then open the task.
Move to the appropriate tab of the Properties
dialog and make the needed changes. To delete a
scheduled task, select it and choose your
favorite method for deleting:
Press the DEL key.
Click the Delete icon on the toolbar.
Right-click the task and choose Delete from the shortcut menu.
Choose Delete from the File menu.
Deleted tasks are sent to the Recycle Bin. If you don’t want a task
to run, but you think you might need it in the future, instead of
deleting it, disable it.
To do that, clear the Enabled check box on the Task tab of the
task’s Properties dialog.
BZUPAGES.COM



You can run any task at any time if you don’t want to wait for the next
scheduled occurrence.
In the Scheduled Tasks window, select the task and choose File | Run, or
right-click the task and choose Run from the shortcut menu.
If a task is running and you want to stop it, open the Scheduled Tasks
window, rightclick the task’s object, and choose End Task from the shortcut
menu. It may take a moment or two for the message to reach the task.
BZUPAGES.COM


You can gain information about the status of a task by changing the
view of the Scheduled
Tasks window to the Details view. The columns provide information
about each task.
BZUPAGES.COM
BZUPAGES.COM

The Advanced menu in the Scheduled Tasks
window offers options for manipulating the
way scheduled tasks operate:
BZUPAGES.COM
Selecting this command disables any
scheduled tasks until you return to the
Advanced menu and select Start Using Task
Scheduler.
 In addition, the Task Scheduler will not
automatically run the next time you start
Windows Server 2003 unless you’ve restarted
it before rebooting.

BZUPAGES.COM




Use this command to temporarily halt
running tasks and prevent scheduled tasks
from starting.
This command is useful for stopping tasks
while you install software.
To resume scheduled tasks, select Continue
Task Scheduler from the Advanced menu.
Any tasks scheduled to run during the time
you paused the Task Scheduler will not run
until their next scheduled times.
BZUPAGES.COM

This command does not mean what it says. It
does not notify you of missed tasks; it only
notifies you about a failure of the Schedule
Task service itself. Tasks that fail to run due
to corrupt or missing executables don’t kick
off a notification.
BZUPAGES.COM

Use this command to change the user
account that runs tasks that are scheduled
with the AT command (the default account is
System). Selecting the command opens the
AT Service Account Configuration dialog,
where you can select a user account (and
enter and confirm the password for that
account). This is almost never a good idea;
you should usually let the System account run
tasks.
BZUPAGES.COM

Select this command to open the task log in
Notepad, where you can track the success or
failure of your scheduled tasks.
BZUPAGES.COM


If you want to leap right to the Properties
dialog to configure your task, instead of
stepping
through the wizard, use one of these
methods to create a new task
BZUPAGES.COM


Choose File | New | Scheduled Task in the
Scheduled Tasks window.
Right-click a blank spot in the Scheduled
Tasks window choose New |Scheduled task
from the shortcut menu.
BZUPAGES.COM


A new icon appears in the window, titled New
Task. The title is in Edit mode so that you can
enter a name for the new task. After you
name the task, right-click its icon
and choose Properties from the shortcut
menu to open the task’s Properties dialog
BZUPAGES.COM
BZUPAGES.COM



The Schedule tab is the place to specify the
frequency for the schedule,
but there’s a difference between the options
presented in the wizard and
Those presented in the Properties dialog.
BZUPAGES.COM



The difference is a missing ingredient. The
wizard offers a Weekdays
option when you select Daily; the Properties
dialog doesn’t. If you want to run this task
only on weekdays, you must select Weekly
and then click the five business days of the
week to create your workweek
BZUPAGES.COM


You can narrow or broaden the schedule
configuration by clicking Advanced, and
choosing the appropriate options
BZUPAGES.COM

The Settings tab offers options that let you
control the way the task operates under
certain system conditions
BZUPAGES.COM




Delete the task if it is not scheduled to run
again. This applies to tasks that have
an end date (including tasks that are run
once, of course). The job, along with its
file, is removed after the last automatic
occurrence. Don’t select this option if this
task might be reincarnated periodically
BZUPAGES.COM





Stop the task if it runs for: specified time.
Enter the duration of time you’ll
permit for this task to complete its job (the
default is 72 hours, which is
ridiculous). This option is useful for timeconsuming tasks that you configure
for middle-of-the-night operations and you
want to make sure they’re not
running when the business day begins
BZUPAGES.COM
BZUPAGES.COM


The Security tab for scheduled tasks is back!
If you’re moving to Windows Server 2003
From Windows NT 4, you didn’t know that it
went missing but Windows 2000 eliminated
BZUPAGES.COM






To delete a scheduled task, select it and
choose your favorite method for deleting:
Press the DEL key.
Click the Delete icon on the toolbar.
Right-click the task and choose Delete from
the shortcut menu.
Choose Delete from the File menu.
Deleted tasks are sent to the Recycle Bin.
BZUPAGES.COM


think you might need it in the future, instead
of deleting it, disable it. To do that, clear
the Enabled check box on the Task tab of the
task’s Properties dialog
BZUPAGES.COM
Any
Questions…?
BZUPAGES.COM