Windows 7 / Getting Started

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:

  1. Select the Task Scheduler Library and then click New Folder in the Actions pane.
  2. Enter the name of the new folder and click OK to complete creation of the new subnode.
  3. 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:

  1. 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.
  2. Enter the name of the task, provide an optional description, and then click Next.
  3. 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.
  4. On the Action page specify an action for your task to perform and then click Next to specify action details.
  5. Options displayed on the next page depend on the action you selected in step 4.
  6. 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:

  1. 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.
  2. In the Name text box, enter a name for the task.
  3. In the Description text box, you can enter an optional task description.
  4. 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.
  5. 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.
  6. 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.

[Previous] [Contents] [Next]

In this tutorial:

  1. Windows 7 Desktop Maintenance
  2. Performance Monitoring
  3. Improvements to Performance Monitoring in Windows 7
  4. Using Performance Monitor
  5. Real-Time Performance Monitoring
  6. Performance Monitor Logging
  7. Creating a Data Collector Set
  8. Configuring a Data Collector Set
  9. Using Data Manager to View Performance Data
  10. Starting and Stopping Data Logging
  11. Viewing Performance Data
  12. Comparing Performance Monitor Logs
  13. Performance Monitor User Rights
  14. Remote Data Collection
  15. Using Windows PowerShell for Performance Monitoring
  16. Resource Monitor
  17. Overview Tab
  18. CPU Tab
  19. Memory Tab
  20. Disk Tab
  21. Network Tab
  22. Reliability Monitor
  23. How Reliability Monitor Works
  24. Windows Performance Tools Kit
  25. Event Monitoring
  26. Understanding the Windows Event Architecture
  27. Channels
  28. Improvements to Event Monitoring in Windows 7
  29. Using Event Viewer
  30. Understanding Views
  31. Viewing Event Logs
  32. Saving Event Logs
  33. Configuring Event Subscriptions
  34. Considerations for Workgroup Environments
  35. Creating a New Subscription
  36. Using the Windows Events Command-Line Utility for Event Monitoring
  37. Using Windows PowerShell for Event Monitoring
  38. Using Task Scheduler
  39. Improvements to Task Scheduler in Windows 7
  40. Understanding Tasks
  41. Understanding the Task Scheduler Architecture
  42. Understanding Task Scheduler Security
  43. Credentials Management
  44. Securing Running Tasks
  45. Understanding AT and Task Scheduler v1.0 Compatibility Modes
  46. Understanding the Task Scheduler Snap-in
  47. Understanding Default Tasks
  48. Creating Tasks
  49. Defining Triggers
  50. At Startup Trigger
  51. On Connection To AND Disconnect From User Session Triggers
  52. On Workstation Lock AND Unlock Triggers
  53. Defining Actions
  54. Defining Conditions
  55. Defining Settings
  56. Managing Tasks
  57. Viewing History
  58. Using SchTasks.exe for Creating and Managing Tasks
  59. Task Scheduler Events
  60. Troubleshooting Task Scheduler
  61. Tasks Won't Run If the Service Is Not Started
  62. The Task Will Run Only When a Certain User Is Logged On
  63. The Task Action Failed to Execute
  64. Interpreting Result and Return Codes
  65. Understanding the Windows System Assessment Tool
  66. Understanding WinSAT Assessment Tests
  67. Examining the WinSAT Features Assessment
  68. Running WinSAT from the Command Line
  69. Understanding WinSAT Command Exit Values
  70. Running WinSAT Using Performance Information and Tools
  71. System Capabilities Section
  72. OEM Upsell And Help Section
  73. Understanding Windows Error Reporting
  74. Overview of Windows Error Reporting
  75. How WER Works
  76. Store Management System
  77. ReportArchive Folder
  78. WER Service
  79. Understanding the Error Reporting Cycle
  80. Understanding WER Data
  81. Configuring WER Using Group Policy
  82. Configuring WER Using the Action Center