Skip to content

Commit 88ce2f7

Browse files
author
Simonx Xu
committed
Update troubleshoot-scheduled-tasks-not-running.md
1 parent 38635de commit 88ce2f7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

support/windows-server/system-management-components/troubleshoot-scheduled-tasks-not-running.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.custom: sap:System Management Components\Task Scheduler, csstroubleshoot
1010
---
1111
# Troubleshoot issues with scheduled tasks not running
1212

13-
This article helps you troubleshoot issues where a scheduled task doesn't run as expected in Task Scheduler.
13+
This article helps you troubleshoot issues where a scheduled task doesn't run as expected in Task Scheduler.
1414

1515
When you configure and schedule a task using Task Scheduler, you might encounter one of the following issues:
1616

@@ -25,28 +25,28 @@ To troubleshoot the issue, follow these steps:
2525
2. [Use the Status column and the History tab to check task status](#step-2-use-the-status-column-and-the-history-tab-to-check-task-status)
2626
3. [Verify errors in the task history](#step-3-verify-errors-in-the-task-history)
2727

28-
## Step 1: Test your script before putting it into a task
28+
## Step 1: Test your script before putting it into a task
2929

30-
Task Scheduler is the trigger of a task. If you use a script, a complete script is the prerequisite to configure a scheduled task. Test your script directly with tools like PowerShell and Command Prompt to make sure there's no error before putting it into a task.
30+
Task Scheduler is the trigger of a task. If you use a script, a complete script is the prerequisite to configure a scheduled task. To make sure that there's no error before putting it into a task, test your script directly with tools like PowerShell and Command Prompt.
3131

3232
## Step 2: Use the Status column and the History tab to check task status
3333

3434
Check the **History** tab for specific task events. This tab allows you to determine if the task is triggered and successfully completed. For example:
3535

3636
:::image type="content" source="./media/troubleshoot-scheduled-tasks-not-running/task-scheduler-history-tab.png" alt-text="Screenshot that shows the History tab of Task Scheduler.":::
3737

38-
If the task isn't triggered, try a manual trigger. Set the trigger start time at a future time if it is a **On a schedule** trigger, and save the task again (re-register the task). If it's still not triggered, collect the task configuration by right-clicking the task and exporting it to an `.xml` file for initial checking.
38+
If the task isn't triggered, try a manual trigger. Set the trigger start time at a future time if it's a **On a schedule** trigger, and save the task again (re-register the task). If it's still not triggered, collect the task configuration by right-clicking the task and exporting it to an `.xml` file for initial checking.
3939

4040
If it's already triggered, use the **Status** column and the **History** tab to check for any errors during the task execution.
4141

42-
Normally, the task should be in **Ready** status for it to be manually or automatically triggered. If it remains in the **Running** status for a long time, check the actions in your task. For example, if the task runs a customized application or a PowerShell script, locate the process in Task Manager. Then troubleshoot why the process keeps running and doesnt exit by collecting dumps or other traces of a specific process.
43-
42+
Normally, the task should be in **Ready** status for it to be manually or automatically triggered. If it remains in the **Running** status for a long time, check the actions in your task. For example, if the task runs a customized application or a PowerShell script, locate the process in Task Manager. Then troubleshoot why the process keeps running and doesn't exit by collecting dumps or other traces of a specific process.
43+
4444
## Step 3: Verify errors in the task history
4545

46-
If there're any errors while completing the task or if the task completes successfully but doesn't show an expected output, use the following methods to further narrow down the issue:
46+
If there are any errors while completing the task or if the task completes successfully but doesn't show an expected output, use the following methods to further narrow down the issue:
4747

48-
- Change your action to a simplified script to determine if the issue is with the script or application.
49-
- [Enable transcripts](/powershell/module/microsoft.powershell.core/about/about_group_policy_settings#turn-on-powershell-transcription) to check for errors while running the PowerShell script. For batch script or others, add more output commands to trace the failure for a specific command.
48+
- Use a simplified script to determine if the issue is related with the script or the application.
49+
- [Enable transcripts](/powershell/module/microsoft.powershell.core/about/about_group_policy_settings#turn-on-powershell-transcription) to check for errors while running the PowerShell script. For batch script or others, add more output commands to trace the failure for a specific command.
5050
- Change the **Security options** to **Run only when user is logged on** to determine if the issue is with security context.
5151

5252
## Logs to be collected

0 commit comments

Comments
 (0)