Creating Tasks
Before you create a task, you should create a new folder under the Task Scheduler Library to store the new task. To create a new Scheduled Tasks folder, follow these steps:
- Select the Task Scheduler Library and then click New Folder in the Actions pane.
- Enter the name of the new folder and click OK to complete creation of the new subnode.
- Select the new folder to start creating a new task.
You can create tasks by using the Create Basic Task Wizard or manually by using the Create Task interface. To create a new task using the Create Basic Task Wizard, follow these steps:
- Right-click the folder you created to store your tasks and select Create Basic Task to display the Create Basic Task Wizard, or select Create Basic Task in the Actions pane.
- Enter the name of the task, provide an optional description, and then click Next.
- On the Task Trigger page, specify when you want the task to start and then click Next. Some choices may require additional information to further define the trigger.
- On the Action page specify an action for your task to perform and then click Next to specify action details.
- Options displayed on the next page depend on the action you selected in step 4.
- After specifying the appropriate action details, click Finish to create the task and close the wizard.
To create a new task manually, follow these steps:
- Select the folder that the task will reside in and either right-click the folder and select Create Task or select Create Task in the Actions pane. Either action will display the Create Task dialog box with several tabs for the different task details. The General tab defines general information about the task.
- In the Name text box, enter a name for the task.
- In the Description text box, you can enter an optional task description.
- Under Security options, select the appropriate options for the task:
- By default, the task will run under the security context of the currently logged-on user. To select a different security context, click Change User Or Group.
- Select either Run Only When User Is Logged On or Run Whether User Is Logged On Or Not. If you select Run Whether User Is Logged On Or Not and check the box Do Not Store Password, the task will use S4U and will not be able to access any resources outside the local computer.
- Select Run With Highest Privileges if the task must run with the highest privileges that the specified user account can obtain. If this box is left unchecked, and if the user account is an administrative account, the task will run under User Account Control (UAC) with partial privileges.
- To hide the task from view by default, select the Hidden check box. You can still view hidden tasks by opening the View menu and selecting Show Hidden Tasks.
- By default, tasks are configured for Task Scheduler 2.0 (Windows Vista or later versions) compatibility. For backward compatibility, the list allows you to select Windows Server 2003, Windows XP, or Windows 2000 to define a task that is compatible with Task Scheduler v1.0.
Options on other tabs that are used to define task details are discussed in later sections of this tutorial.
In this tutorial:
- Windows 7 Desktop Maintenance
- Performance Monitoring
- Improvements to Performance Monitoring in Windows 7
- Using Performance Monitor
- Real-Time Performance Monitoring
- Performance Monitor Logging
- Creating a Data Collector Set
- Configuring a Data Collector Set
- Using Data Manager to View Performance Data
- Starting and Stopping Data Logging
- Viewing Performance Data
- Comparing Performance Monitor Logs
- Performance Monitor User Rights
- Remote Data Collection
- Using Windows PowerShell for Performance Monitoring
- Resource Monitor
- Overview Tab
- CPU Tab
- Memory Tab
- Disk Tab
- Network Tab
- Reliability Monitor
- How Reliability Monitor Works
- Windows Performance Tools Kit
- Event Monitoring
- Understanding the Windows Event Architecture
- Channels
- Improvements to Event Monitoring in Windows 7
- Using Event Viewer
- Understanding Views
- Viewing Event Logs
- Saving Event Logs
- Configuring Event Subscriptions
- Considerations for Workgroup Environments
- Creating a New Subscription
- Using the Windows Events Command-Line Utility for Event Monitoring
- Using Windows PowerShell for Event Monitoring
- Using Task Scheduler
- Improvements to Task Scheduler in Windows 7
- Understanding Tasks
- Understanding the Task Scheduler Architecture
- Understanding Task Scheduler Security
- Credentials Management
- Securing Running Tasks
- Understanding AT and Task Scheduler v1.0 Compatibility Modes
- Understanding the Task Scheduler Snap-in
- Understanding Default Tasks
- Creating Tasks
- Defining Triggers
- At Startup Trigger
- On Connection To AND Disconnect From User Session Triggers
- On Workstation Lock AND Unlock Triggers
- Defining Actions
- Defining Conditions
- Defining Settings
- Managing Tasks
- Viewing History
- Using SchTasks.exe for Creating and Managing Tasks
- Task Scheduler Events
- Troubleshooting Task Scheduler
- Tasks Won't Run If the Service Is Not Started
- The Task Will Run Only When a Certain User Is Logged On
- The Task Action Failed to Execute
- Interpreting Result and Return Codes
- Understanding the Windows System Assessment Tool
- Understanding WinSAT Assessment Tests
- Examining the WinSAT Features Assessment
- Running WinSAT from the Command Line
- Understanding WinSAT Command Exit Values
- Running WinSAT Using Performance Information and Tools
- System Capabilities Section
- OEM Upsell And Help Section
- Understanding Windows Error Reporting
- Overview of Windows Error Reporting
- How WER Works
- Store Management System
- ReportArchive Folder
- WER Service
- Understanding the Error Reporting Cycle
- Understanding WER Data
- Configuring WER Using Group Policy
- Configuring WER Using the Action Center