SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / server / Questions / 1406
Accepted
Jeff Atwood
Jeff Atwood
Asked: 2009-05-01 10:16:30 +0800 CST2009-05-01 10:16:30 +0800 CST 2009-05-01 10:16:30 +0800 CST

Windows Server unable to synchronize NTP time reliably

  • 772

Why does Windows Server (2008, in this case, but I've seen the same problem in 2003) seem to have problem synchronizing time? I've seen this error in my System log across a variety of servers:

The time service has not synchronized the system time for 86400 seconds because none of the time service providers provided a usable time stamp. The time service will not update the local system time until it is able to synchronize with a time source. If the local system is configured to act as a time server for clients, it will stop advertising as a time source to clients. The time service will continue to retry and sync time with its time sources. Check system event log for other W32time events for more details. Run 'w32tm /resync' to force an instant time synchronization.

Under Control Panel, Date and Time, The Internet Time Settings are set to synchronize with time-nw.nist.gov ; the last successful sync was 2 days ago, indicating there's some kind of problem. But if I click the "update now" button on that dialog, indeed, it updates with the time!

So why can't windows server reliably time sync via NTP in the background without me manually intervening? What am I doing wrong?

windows time ntp time-synchronization
  • 4 4 Answers
  • 42709 Views

4 Answers

  • Voted
  1. Best Answer
    Joseph
    2009-05-01T10:27:04+08:002009-05-01T10:27:04+08:00

    Jeff, I found this article. Might be of some help to you. You might have already read this but I thought it was worth a shot.

    HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
    

    This registry entry controls whether the local computer is marked as a reliable time server (which is only possible if the previous registry entry is set to NTP as described above). Change this REG_DWORD value from 10 to 5 here.

    UPDATE As per Jeff, best source of reference is http://support.microsoft.com/kb/816042

    • 19
  2. crb
    2009-06-15T06:43:12+08:002009-06-15T06:43:12+08:00

    Windows Time Agent is a free control panel applet for configuring the NTP server/synchronization ability of Windows. It acts as a front-end to the registry settings and lets you configure multiple NTP servers and see what sort of results you are getting from them in real-time.

    Not many people know about this particularly handy (and free) piece of software, but it's a must-install on servers I maintain.

    • 14
  3. Mark Porter
    2009-05-30T08:19:32+08:002009-05-30T08:19:32+08:00

    When synchronized time is important, I use NTPD for windows

    http://www.meinberg.de/english/sw/ntp.htm

    I install it, point it at north-america.pool.ntp.org and forget it

    • 8
  4. Brett Larson
    2012-12-13T13:11:28+08:002012-12-13T13:11:28+08:00

    The way that Microsoft suggests to sync time is visualized below.

    M$ Time!

    So why can't Windows reliably sync NTP? It has to do with how time is set up in a domain environment. From this Technet artice:

    If the computer is a member server or workstation within a domain, by default, it follows the AD DS hierarchy and synchronizes its time with a domain controller in its local domain that is currently running the Windows Time service.

    You are going "against the grain" here by trying to set up member servers to pull NTP time.

    The "Right" (Ie. the Microsoft way) to do it would be to set time up as displayed in the picture above, having the PDC Emulator sync to a reliable external time service such as pool.ntp.org, having the domain controllers sync to the PDC emulator, and then having the member servers and PCs automatically sync from a domain controller.

    I have detailed the process of fixing the time to operate this way in this answer.

    • 5

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    Ping a Specific Port

    • 18 Answers
  • Marko Smith

    What port does SFTP use?

    • 6 Answers
  • Marko Smith

    Resolve host name from IP address

    • 8 Answers
  • Marko Smith

    How can I sort du -h output by size

    • 30 Answers
  • Marko Smith

    Command line to list users in a Windows Active Directory group?

    • 9 Answers
  • Marko Smith

    What's the command-line utility in Windows to do a reverse DNS look-up?

    • 14 Answers
  • Marko Smith

    How to check if a port is blocked on a Windows machine?

    • 4 Answers
  • Marko Smith

    What port should I open to allow remote desktop?

    • 9 Answers
  • Marko Smith

    What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

    • 3 Answers
  • Marko Smith

    How to determine if a bash variable is empty?

    • 15 Answers
  • Martin Hope
    Davie Ping a Specific Port 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    Deepak Mittal How to run a server on port 80 as a normal user on Linux? 2008-11-11 06:31:11 +0800 CST
  • Martin Hope
    MikeN In Nginx, how can I rewrite all http requests to https while maintaining sub-domain? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner How can I sort du -h output by size 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 What is the difference between double and single square brackets in bash? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    kch How do I change my private key passphrase? 2009-08-06 21:37:57 +0800 CST
  • Martin Hope
    Kyle Brandt How does IPv4 Subnetting Work? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent How to determine if a bash variable is empty? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus How do you find what process is holding a file open in Windows? 2009-05-01 16:47:16 +0800 CST

Related Questions

Trending Tags

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve