Defining Actions
When you create a task, you must configure one or more actions to run a program, script, or batch file; send an e-mail; or pop up a message when your task starts. The Actions tab allows you to define, view, or modify actions for this task. To configure actions, click the Actions tab and then click New to display the New Action dialog box.
To configure an action to start a program, script, or batch file, follow these steps:
- Click the Action list and select Start A Program to display the configuration options shown above.
- In the Settings group box, under Program/Script, provide the path to the program or script or select Browse to choose a program, script, or batch file on the local computer.
- If the directory that contains the program, script, or batch file is not included in the local computer path, enter the starting directory in the Start In text box.
- If the program, script, or batch file requires additional arguments to be passed to it at launch, enter these arguments in the Add Arguments (Optional) text box.
To configure an action to send e-mail, follow these steps:
- Open the Action list and select Send An E-mail to display the configuration options.
- In the Settings group box, enter the required information listed in Table below.
Send E-Mail Settings
Setting | Description |
From | Specifies the e-mail address of the sender. |
To | Specifies one or more e-mail addresses for recipients. When you enter multiple addresses, separate each address from the rest with a semicolon (;). |
Subject | Specifies a subject for the e-mail. |
Text | Allows the user to enter a formatted message to be included in the content of the e-mail. |
Attachment | Displays a File Open dialog box that allows the user to select one or more files to attach to the e-mail. |
SMTP Server | Allows the user to enter the Domain Name System (DNS) or NETBIOS name for the Simple Mail Transfer Protocol (SMTP) server to be used to send the e-mail. |
Note To configure the task to pop up a message, choose Display A Message in the Action drop-down list and then enter a title and a message to be displayed when the task runs.
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