About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
Microsoft-Windows-Time-Service event 142 is a warning in the System log that a domain controller has stopped advertising itself as a time source. The page gives the cause by which of four strings the event carries, and calls the string "because there are no providers running" the dominant one.
This is the server side of a time problem. The client message that the computer did not resync because no time data was available is the other end of the same chain.
What the error means
Microsoft's page, "Event 142: The time service has stopped advertising as a time source", gives the event as logged in the System log by source Microsoft-Windows-Time-Service, level Warning, user LOCAL SERVICE, task category None. The event carries one of four error strings:
| Error status | Error string on the page |
|---|---|
| event_0x0038 | The time service has stopped advertising as a time source because the local machine is not an Active Directory Domain Controller. |
| event_0x0039 | The time service has stopped advertising as a time source because there are no providers running. |
| event_0x003A | The time service has stopped advertising as a time source because there are no providers running. |
| event_0x003B | The time service has stopped advertising as a good time source. |
The page's text for the last one continues with "The local clock is not synchronized", and its worked example shows the event reading "because the local clock is not synchronized."
The page says: "The dominant error string logged by Microsoft-Windows-Time-Service Event 142 is the third example", which is the "no providers running" string.
Likely causes
The page lists the cause for each string in the same order as the table above:
| Error string | Cause on the page |
|---|---|
| Not an Active Directory Domain Controller | "The local machine no longer host the DC role or there is a configuration problem with the local machine" |
| No providers running (first form) | "The NTP client service has stopped or is non-responsive" |
| No providers running (second form) | "Time on the local computer has fallen out of sync with its peer" |
| Not advertising as a good time source | "The local DC is unable to locate a time server" |
Under "Other root causes" the page adds two: AnnounceFlags = 10 on the forest-root PDC (set explicitly, in the registry or in Group Policy), and, for a domain controller that is a virtual guest on a Hyper-V host, the Hyper-V time synchronisation service (VMICTimeSync): the page's words are "disable VMICTimeSync on the Hyper-V host". The same page later records that the Hyper-V team recommends the opposite, so the page contradicts itself on VMICTimeSync. The fix section sets out both statements. The event page does not explain what AnnounceFlags = 10 does. Microsoft's Windows Time page lists 10 as the default value, for domain members and for stand-alone computers alike, and lists the flag values 0x08 (automatic reliable time server) and 0x02 (automatic time server); it does not say why the event page counts 10 as a cause.
Prove the cause before changing anything
All of these only read. Run them on the domain controller that logs event 142.
- Note which of the four strings the event carries, and the time it was logged. That picks the row in the table above.
- Check the forest-root PDC. The page says to verify that it is online and healthy, that it is correctly configured to sync time with an external time source, and that it can reliably source time from that source.
- Check the Windows Time service. The page says to verify the service startup values and state: "automatic + running". Read the startup type and the state of the Windows Time service on the domain controller.
- Check that the domain controller can find a time server with DC Locator. The page gives these two commands:
nltest /dsgetdc:<dns domain> /timeserv /force
nltest /dsgetdc:<dns domain> /gtimeserv /force
The page notes the second is for when a good time server (gtimesrv) is configured in the environment.
- Check where time comes from:
w32tm /query /source. Microsoft's Windows Time page confirms that/querytakes/source,/configuration,/peersor/status, and thatw32tm /query /statusshows the time service's status. - Check for competing time protocols. The page says to look for Microsoft-Windows-Time-Service event 35 and event 37, noting the protocol and source domain controller in each, and Microsoft-Windows-Kernel-General event 1. Event 1 records that time has changed and is logged every time W32Time updates the clock and every time Hyper-V time synchronisation updates it. It is not specific to virtual machines.
- For a virtual guest, check the host's time source. The page's own example found a domain controller using the "VM IC Time Synchronization Provider" in event 35 while other domain controllers took NTP time.
Example (illustrative): at contoso.com.au, dc02 logs event 142 with "because there are no providers running". nltest /dsgetdc:contoso.com.au /timeserv /force returns dc01. w32tm /query /source on dc02 reports Local CMOS Clock. Event 35 on dc01 names a virtualisation time provider while dc02 receives NTP from dc01 in event 37. Two time sources are competing, and the forest root has no external source.
Fix
The page's resolution is a checklist, followed by differing opinions that it records without settling. The checklist says:
- to execute the action plan in TechNet's "Event ID 142 - Time Service Advertisement", which is a separate page that is not described here;
- that the forest-root PDC is configured with, and can reach, an external time source;
- that the service startup values are automatic and running;
- that DC Locator can find a time server and that port and protocol connectivity to peer time servers works;
- to check for the use of dueling time protocols by looking at Time-Service events 35 and 37 and Kernel-General event 1, as in the proof above.
The only change set out step by step below is the time-source change.
On virtual machines, the page records differing positions. Under its other root causes it says to disable VMICTimeSync on the Hyper-V host; it lists "If using virtualization, disable VMICTimeSync (it is being evaluated" among its team recommendations; it states that "The Hyper-V team recommends that you don't disable VMICTimeSync", giving as the reason that it "provides protection against time synchronization issues if you used saved state"; and it gives as the real requirement that "if you are running a domain controller something needs to be getting accurate time from a remote server", either a remote time source inside the virtual machine or VMICTimeSync left on with the host using a reliable time source. The page also says a domain controller with VMICTimeSync disabled and no external time source "will use local time". Because those statements differ, decide the time source for the domain controller first, from the checks above, before you change any provider.
The one change carried over here from the page's commands is pointing the time service at an external peer. Microsoft's Windows Time page gives the same form of command with the /manualpeerlist, /syncfromflags:manual and /update options. Before you make that change on the forest-root PDC, save the current configuration. Create C:\Temp first if it does not exist:
w32tm /query /configuration > C:\Temp\w32time-config-before.txt
Disruptive step: the next commands change where the forest-root PDC takes its time from and then stop and start the Windows Time service on that domain controller. Every domain controller and domain member that depends on that PDC for time is affected, and a wrong peer list can make the whole domain's clocks wrong. Run it during a quiet period and only on the forest-root PDC, and only after the proof showed it has no working external source.
Set the peer, using your own external time server in place of the placeholder, then restart the service:
w32tm /config /manualpeerlist:"<time server FQDN>" /syncfromflags:manual /update
net stop w32time
net start w32time
w32tm /query /source
To undo it: read the saved file, then re-enter the values it shows with the same w32tm /config ... /update command, and restart the service. Microsoft's Windows Time page shows the form for a computer that should take its time from the domain hierarchy as w32tm /config /syncfromflags:domhier /update, followed by net stop w32time and net start w32time. Use that form only if the saved file shows the previous source was the domain hierarchy.
Microsoft's example command list also contains lines that disable the VMICTimeSync service and delete a registry key. They are left out here, because the page itself records that the Hyper-V team advises against disabling VMICTimeSync, and a registry deletion cannot be undone from the page.
Confirm the fix
w32tm /query /sourceon the domain controller shows the time source you intended.- The two
nltestcommands from the proof return a time server. - Event 142 is no longer logged after the change. Check the System log over the following hours.
- Event 37 shows the NtpClient receiving valid time data, and event 35 names only the provider you want.
What to watch afterwards
- A virtualised domain controller whose provider changes. The page says time on the guest can "ping pong" between values when the host and guest use different sources.
- Time differences between machines. The Kerberos limit of 5 minutes is the practical edge, and the page's worked example ended in a Remote Desktop failure for that reason.
- Any change to
AnnounceFlagsby Group Policy or the registry on the forest-root PDC.
Read next
Related articles you may want next.
- Troubleshootingw32tm /resync fails with "The computer did not resync because no time data was available"w32tm /resync says no time data was available. Read the NtpServer value, test UDP 123 and the source, then change it with a saved registry key.Read article
- Backup & RecoveryTime synchronisation as a silent recovery dependencyHow NTP's unsynchronised state and DHCP's lease clock rules make time a dependency you have to restore before you trust timestamps.Read article
- VMwareESXi host time is wrong: NTP shows 'Time Synchronized: false' or 'Configuration is not working normally'ESXi host clock wrong and NTP not syncing? Read ntpq reach and refid, check the ntpClient firewall rule and UDP 123, then fix and confirm with esxcli.Read article
Risks and limits
These steps have not been run or lab-tested.
Microsoft's page includes a worked example from a Windows Server 2008 R2 Hyper-V environment and a recommendation dated 2010.11.22, and says plainly that there are "differing opinions about how to configure time in host and guest computers". Its worked example is a Hyper-V environment, so it does not tell you what to do for a domain controller on VMware or another platform. The event page does not explain AnnounceFlags = 10, which the Windows Time page lists as the default. Time changes on a domain controller affect authentication across the domain, so change one setting at a time.
Sources
- Event 142: The time service has stopped advertising as a time source — Microsoft Learn, page dated 2026-02-12, accessed 1 December 2026
- Windows Time service tools and settings — Microsoft Learn, page dated 2025-09-18, accessed 1 December 2026
This article was originally published on .