Skip to content

Commit b9f99c7

Browse files
committed
2 parents 356f01e + 3e09890 commit b9f99c7

8 files changed

Lines changed: 131 additions & 6 deletions

File tree

.github/workflows/auto_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
auto-push-to-live:
1414
runs-on: ubuntu-latest
15-
if: github.repository_owner == 'MicrosoftDocs'
15+
if: github.repository == 'MicrosoftDocs/SupportArticles-docs-pr'
1616
permissions:
1717
contents: write
1818
pull-requests: write

.github/workflows/manage_stale_branches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111

1212
stale-branch:
13-
if: github.repository_owner == 'MicrosoftDocs'
13+
if: github.repository == 'MicrosoftDocs/SupportArticles-docs-pr'
1414
uses: MicrosoftDocs/microsoft-365-docs/.github/workflows/Shared-StaleBranch.yml@workflows-prod
1515
with:
1616
PayloadJson: ${{ toJSON(github) }}

.github/workflows/validate_branch_names.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
validate-branch-name:
8-
if: startsWith(github.ref, 'refs/heads/')
8+
if: github.repository == 'MicrosoftDocs/SupportArticles-docs-pr' && startsWith(github.ref, 'refs/heads/')
99
runs-on: windows-latest
1010
strategy:
1111
fail-fast: true # Prevent retries on failure

support/entra/entra-id/app-integration/error-code-AADSTS50020-user-account-identity-provider-does-not-exist.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Error AADSTS50020 - User account from identity provider does not exist in tenant
3-
description: Troubleshoot scenarios in which a guest user unsuccessfully tries to sign in to the resource tenant and error code AADSTS50020 is returned.
3+
description: Troubleshoot scenarios in which a guest user unsuccessfully tries to sign in to the resource tenant and error code AADSTS50020 is returned
44
ms.date: 11/23/2023
55
ms.editor: v-jsitser
66
ms.reviewer: rrajan, haelshab, sungow, v-leedennis
77
ms.service: entra-id
8-
ms.custom: sap:Issues Signing In to Applications, has-azure-ad-ps-ref
8+
ms.custom: sap:Issues Signing In to Applications, no-azure-ad-ps-ref
99
keywords: AADSTS50020
1010
#Customer intent: As a Microsoft Entra administrator, I want to figure out why error code AADSTS50020 occurs so that I can make sure that my guest users from an identity provider can sign in to a resource tenant.
1111
---

support/entra/entra-id/governance/verify-first-party-apps-sign-in.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Describes how to verify first-party Microsoft applications in sign-
44
ms.date: 03/08/2024
55
ms.reviewer: bernaw, domooney, grtaylor, v-six, v-weizhu
66
ms.service: entra-id
7-
ms.custom: sap:Sign-In Activity Reports, has-azure-ad-ps-ref
7+
ms.custom: sap:Sign-In Activity Reports, no-azure-ad-ps-ref
88
---
99
# Verify first-party Microsoft applications in sign-in reports
1010

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
title: Troubleshoot Task Scheduler Service Startup Failure
3+
description: Helps troubleshoot the failure to start the Task Scheduler service in Windows computers.
4+
ms.date: 04/21/2025
5+
manager: dcscontentpm
6+
audience: itpro
7+
ms.topic: troubleshooting
8+
ms.reviewer: kaushika, warrenw, mamash, v-lianna
9+
ms.custom:
10+
- sap:system management components\task scheduler
11+
- pcy:WinComm User Experience
12+
---
13+
# Troubleshoot issues with the Task Scheduler service not starting
14+
15+
This article helps troubleshoot the failure to start the Task Scheduler service in Windows computers.
16+
17+
Your scheduled tasks don't run or miss their schedules. When you open Task Scheduler, you receive the following error message:
18+
19+
> The remote computer was not found.
20+
21+
The Task Scheduler service isn't started in the **Services** snap-in (**Services.msc**). When you start the Task Scheduler service, you receive one of the following error messages:
22+
23+
- > The Task Scheduler service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.
24+
- > Error 5: Access is denied
25+
- > Error 126: The specified module could not be found
26+
27+
Each error message has different causes and resolutions.
28+
29+
## Error: The Task Scheduler service on Local Computer started and then stopped
30+
31+
This error occurs because the Time Broker service is either stopped or disabled. To resolve the error, enable and start the service by using one of the following methods.
32+
33+
> [!NOTE]
34+
> The Time Broker service coordinates the execution of background work for WinRT applications. If this service is stopped or disabled, background work might not be triggered.
35+
36+
### Use the Services snap-in
37+
38+
Select **Start** > **Windows Administrative Tools** > **Services**, and check if the Time Broker service is running. If it isn't running or is disabled, enable it and then start it.
39+
40+
### Use Registry Editor
41+
42+
1. Open Registry Editor, and go to `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TimeBrokerSvc`.
43+
2. In the right pane, check if the `Start` value is set to `3` by default. If not, modify it to `3`.
44+
3. Restart your computer and check if the Task Scheduler service is running.
45+
46+
If that doesn't resolve the issue and you still can't start the Task Scheduler service, see the [Additional resources](#additional-resources) section.
47+
48+
## Error 5: Access is denied
49+
50+
This error occurs because the NT AUTHORITY\\SYSTEM account doesn't have write permissions to the System event log. The permissions might have been modified by a system administrator using a `CustomSD` registry key for other purposes.
51+
52+
The Task Scheduler service runs under the SYSTEM account. By default, the SYSTEM account has write permissions to the System event log to allow the Task Scheduler service to log events into the System event log.
53+
54+
The security of each log is configured locally through the values in the following registry key:
55+
56+
`HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog`
57+
58+
If the System event log permissions are customized, the System log security descriptor is configured through the following registry key:
59+
60+
`HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System\CustomSD`
61+
62+
The security descriptor is specified using the Security Descriptor Definition Language (SDDL) syntax. The SDDL should grant the SYSTEM account Read, Write, and Clear permissions in the following context:
63+
64+
`(A;;0xf0007;;;SY)`
65+
66+
The value of SY (SYSTEM account) is `7`, which means Read(1)+Write(2)+Clear(4). If not, change it to `7` so it has the proper permissions to the System event log. Once the SDDL of the SYSTEM account has been corrected, restart the machine and check if the Task Scheduler service is started.
67+
68+
You can also check the SDDL of the System event log by running the following command:
69+
70+
```console
71+
wevtutil get-log "SYSTEM"
72+
```
73+
74+
The default values should look like:
75+
76+
```output
77+
name: SYSTEM
78+
enabled: true
79+
type: Admin
80+
isolation: System
81+
channelAccess: O:BAG:SYD:(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x3;;;BO)(A;;0x5;;;SO)(A;;0x1;;;IU)(A;;0x3;;;SU)(A;;0x1;;;S-1-5-3)(A;;0x2;;;S-1-5-33)(A;;0x1;;;S-1-5-32-573)
82+
```
83+
84+
For more information about how to modify the event log SDDL, see [Set event log security locally or via Group Policy](../../windows-server/group-policy/set-event-log-security-locally-or-via-group-policy.md).
85+
86+
If that doesn't resolve the issue and you still can't start the Task Scheduler service, see the [Additional resources](#additional-resources) section.
87+
88+
## Error 126: The specified module could not be found
89+
90+
This error occurs because a file related to the Task Scheduler service is missing or can't be found.
91+
92+
In this case, a required system file is missing, or the Task Scheduler service refers to an invalid file under its registry configuration.
93+
94+
Determine if the service is configured correctly under its registry configuration:
95+
96+
1. Open Registry Editor.
97+
2. Go to the Task Scheduler service location under the following path:
98+
99+
`HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule\Parameters`
100+
101+
3. In the right pane, check if the registry value `ServiceDll` has the value data of `%systemroot%\system32\schedsvc.dll`.
102+
4. If it does, check if the **schedsvc.dll** file exists under **%systemroot%\system32**.
103+
5. If the DLL file is missing, [use the System File Checker tool to repair missing or corrupted system files](https://support.microsoft.com/topic/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094e).
104+
6. Once the repair is done, start the Task Scheduler service.
105+
106+
If that doesn't resolve the issue and you still can't start the Task Scheduler service, see the [Additional resources](#additional-resources) section.
107+
108+
## Additional resources
109+
110+
Use the following event logs to view additional information about the service start failure:
111+
112+
- System event logs
113+
- Application event logs
114+
- Task Scheduler event logs under:
115+
116+
- **Event Viewer** > **Applications and Services Logs** > **Microsoft** > **Windows** > **TaskScheduler** > **Maintenance**
117+
- **Event Viewer** > **Applications and Services Logs** > **Microsoft** > **Windows** > **TaskScheduler** > **Operational**
118+
119+
## Contact Microsoft Support
120+
121+
If the preceding steps can't resolve the issue, contact Microsoft Support for further assistance.

support/windows-client/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,8 @@ items:
10351035
href: ./system-management-components/run-programs-automatically.md
10361036
- name: Task scheduler runs tasks as background processes
10371037
href: ./system-management-components/task-scheduler-task-only-runs-in-background.md
1038+
- name: Task Scheduler service can't start
1039+
href: ./system-management-components/task-scheduler-service-not-start.md
10381040
- name: Use the at command to schedule tasks
10391041
href: ./system-management-components/use-at-command-to-schedule-tasks.md
10401042
- name: WER

support/windows-server/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2575,6 +2575,8 @@ items:
25752575
href: ./system-management-components/scheduled-tasks-reference-incorrect-user-profile.md
25762576
- name: Troubleshoot issues with scheduled tasks not running
25772577
href: ./system-management-components/troubleshoot-scheduled-tasks-not-running.md
2578+
- name: Troubleshoot issues with the Task Scheduler service not starting
2579+
href: ../windows-client/system-management-components/task-scheduler-service-not-start.md?context=/troubleshoot/windows-server/context/context
25782580
- name: Resolve Task Scheduler "Access Denied" error
25792581
href: ./system-management-components/troubleshooting-task-scheduler-access-denied-error.md
25802582
- name: WinRM

0 commit comments

Comments
 (0)