Logo
PREGNANCY
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows Vista

Scheduling Tasks

3/15/2011 10:38:52 PM
Often, the best time to perform maintenance for performance and disaster recovery is late, late at night, when all the users are at home and asleep, and the servers and the network are at their quietest. The problem is that at that time of the night, all the administrators are also at home and fast asleep. So how should you get your maintenance tasks running at two o’clock in the morning? Why, the Task Scheduler is your tool to do this, of course.

The Task Scheduler is located in Control Panel > System and Maintenance > Administrative Tools. It has a new look and feel in Windows Vista, and has features and capabilities like never before.

The old Task Scheduler in Windows XP and even in Windows Server 2003 was (is) pretty basic; to use it, you followed these steps:

1.
Select an executable or script to run.

2.
Input credentials to run the task.

3.
Set the schedule.

You were done in about three steps.

Tip

The Task Scheduler relies on an underlying service named (Surprise!) the Task Scheduler service. This service may have been stopped for security and performance reasons. If you plan to configure scheduled tasks, you should verify that the Task Scheduler service is started.


The new Task Scheduler has a large library of preconfigured, system-related tasks. Some tasks are active and are already performing their duties in the background. Some tasks are lying dormant, waiting for someone to set a valid trigger to activate them.

As shown in Figure 1, the library of preconfigured tasks covers a wide range of targets.

Figure 1. Preconfigured Windows tasks are available in the Task Scheduler.

To make adjustments to the existing tasks, click the Properties hyperlink in the Actions pane on the right. This brings up the configuration details, as shown in Figure 2. The General tab shows which credentials are used to run the task.

Figure 2. The properties of a scheduled task.

 Alert

On the Triggers tab, you can configure what causes your application to run. As you can see in Figure 3, you have many new options to choose from. Notice that triggers can even be generated from specified events within Event Viewer. Multiple different triggers can be included on the Triggers list.

Figure 3. The triggers that launch a scheduled task now include At Log On and At Startup.


 Alert

On the Actions tab, you can configure what the Trigger event causes to happen. As you can see in Figure 4, you can start a program, send an email, or display a message on the console. Multiple actions can be included on the Actions list.

Figure 4. Actions now include Start a Program, Send an E-mail, or Display a Message on the Console.



A new setting on the Conditions tab is to start the task only if a specified network connection is available. The Settings tab has a new option on what to do if an instance of the task is already running. The choices include

  • Do Not Start a New Instance

  • Run a New Instance in Parallel

  • Queue a New Instance

  • Stop the Existing Instance

And finally, the History tab shows a log of activity related to this one task.

Tasks are now recorded in XML files. These XML files can be easily exported and imported onto other Windows Vista computers.

Command-Line Task Scheduler Tools

Surprisingly, the old AT command-line Task Scheduler tool is still around and kicking. But the recommended command-line tool to use is called SchTasks.exe. This tool isn’t new in Vista but is newer than AT.

While SchTasks can’t use triggers other than the clock, and can launch only executables and scripts, you can use SchTasks with these switches to perform the following functions regarding scheduled tasks:

  • Run— Launches the scheduled task immediately

  • End— Stops the currently running scheduled task

  • Query— Displays all scheduled tasks

  • Change— Changes the properties of the scheduled task

  • Create— Creates a new scheduled task

  • Delete— Deletes the scheduled task(s)

You should be familiar with these basic functions available with this command-line utility for the exam.

Other -----------------
- Troubleshooting Policy Settings
- Group Policy Settings (part 5) - Point and Print Restrictions & Digital Certificates and Authenticode
- Group Policy Settings (part 4) - The Audit Policy
- Group Policy Settings (part 3) - Managing Device Installation
- Group Policy Settings (part 2) - Software Restrictions
- Group Policy Settings (part 1) - Desktop Settings & Software Deployment by GPO
- Group Policy Object Overview (part 2) - Applying GPOs to a Computer and User in an AD Environment
- Group Policy Object Overview (part 1) - Building a Local Computer Policy & The Domain Member Computer
- User Account Control (UAC)
- Troubleshoot Authentication Issues - SmartCards
- Configure and Troubleshoot Access to Resources (part 4) - Securing Network Traffic for Remote Desktop Protocol (RDP) Access
- Configure and Troubleshoot Access to Resources (part 3) - IPSec for Securing Network Traffic on the Local LAN
- Configure and Troubleshoot Access to Resources (part 2) - Printer Sharing
- Configure and Troubleshoot Access to Resources (part 1) - Permissions
- Windows Update (part 4) - Troubleshooting Updates
- Windows Update (part 3) - Windows Server Update Services Server (WSUS)
- Windows Update (part 2) - Automatic Updates
- Windows Update (part 1) - Manual Updates
- Windows Defender and Other Defenses Against Malware
- Windows Firewall
 
 
Most view of day
- Windows Phone 8 : Configuring Basic Device Settings - Backing Up Your Phone (part 4) - Determining Backup Quality for Your Photos and Videos
- Maintaining Dynamics GP : Maintaining updated code by rolling out Service Packs with Client Updates
- Windows Small Business Server 2011 : Adding a Terminal Server - Configuring RemoteApps (part 2) - Deploying with .rdp and .msi files
- Using Micrsosft Outlook 2010 with SharePoint and OCS : Using SharePoint Document Libraries in Outlook
- Maintaining Desktop Health : Using Task Scheduler (part 2) - Task Scheduler Security, Task Scheduler User Interface
- Microsoft Visio 2010 : Creating Web Pages from Visio Drawings (part 2) - Exploring Visio-Generated Web Pages
- Managing Windows Licensing and Activation : Managing Volume License Activation (part 2) - Leveraging MAK activation, Comparing KMS and MAK activation
- SQL Server 2008 R2 : Creating and Managing Stored Procedures - Deferred Name Resolution
- Microsoft Excel 2010 : Protecting and Securing a Workbook - Marking a Workbook as Read-Only
- System Center Configuration Manager 2007 : Configuring Desired Configuration Management
Top 10
- Sharepoint 2013 : Working with the CSOM (part 6) - Working with the JavaScript client object model - Creating, reading, updating, and deleting in the JavaScript client object model
- Sharepoint 2013 : Working with the CSOM (part 5) - Working with the JavaScript client object model - Handling errors
- Sharepoint 2013 : Working with the CSOM (part 4) - Working with the JavaScript client object model - Returning collections
- Sharepoint 2013 : Working with the CSOM (part 3) - Working with the managed client object model - Creating, reading, updating, and deleting
- Sharepoint 2013 : Working with the CSOM (part 2) - Working with the managed client object model - Handling errors
- Sharepoint 2013 : Working with the CSOM (part 1) - Understanding client object model fundamentals
- Windows Phone 8 : Configuring Mailbox Settings (part 5) - Configuring Automatic Replies
- Windows Phone 8 : Configuring Mailbox Settings (part 4) - Lightening the Display,Changing the Mailbox Sync Settings
- Windows Phone 8 : Configuring Mailbox Settings (part 3) - Message Signatures, Blind CCing Yourself
- Windows Phone 8 : Configuring Mailbox Settings (part 2) - Unlinking Mailboxes, Conversation View
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro