NTP - configure windows server (in domain environment) to use linux server as NTP

WW-6729 371 Reputation points
2022-02-10T08:17:22.783+00:00

Hello! I'm trying to force one windows server (server is in domain) to sync time with another server (Linux) who acts as NTP server. I'm trying to do this just for this windows server. Does anybody knows proper procedure because everything I tried doesn't work? Thank you!

Best regards!

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,127 questions
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Clément BETACORNE 2,031 Reputation points
    2022-02-10T09:12:36.867+00:00

    Hello,

    If you want to ensure that your windows server will not use the domain hierarchy for NTP you have to check first the value of Type under TimeProviders to ensure that it is not NT5DS via the command w32tm /query /configuration

    173094-image.png

    After that you have two option to change that via GPO or via command line, below an example via command line :
    w32tm /config /manualpeerlist:"ntpserver.contoso.com clock.adatum.com" /syncfromflags:manual /update

    With GPO check this article (Not a Microsoft link) :
    https://theitbros.com/configure-ntp-time-sync-group-policy/

    Regards,

    0 comments No comments

  2. WW-6729 371 Reputation points
    2022-02-10T11:19:34.153+00:00

    Hello,

    the type is set to NTP (local):
    173117-image.png

    NtpServer: my_linux_server, 0x9

    But it does not work...

    For w32tm /query /status I have Source:
    173154-image.png

    Is this OK for Source?

    Any other suggestion much appreciated.

    Best regards!


  3. WW-6729 371 Reputation points
    2022-02-11T09:50:36.247+00:00

    I've mentioned that I'm trying to sync time on windows server with linux server (NTP server). Maybe there is some different configuration that I must use? Both servers are on same LAN network (there's no blocking between them). When I enter command w32tm /monitor /computer: my_linux_NTP_server I get an error:
    173516-image.png

    Is there something I need to configure on Linux (chrony is configured as NTP server on linux)?

    0 comments No comments

  4. WW-6729 371 Reputation points
    2022-02-11T15:10:48.663+00:00

    We managed to get the sync. We noticed that time won't sync if the the difference is greater than ~12h. When we try to sync in that case we get the next error:
    173588-image.png

    Is there anything to be changed so that we can sync greater times in difference?

    0 comments No comments

  5. Clément BETACORNE 2,031 Reputation points
    2022-02-14T09:29:10.063+00:00

    Hello,

    If the offset is to big you will have this kind of message, you can try to change some registry key :

    • MaxPosPhaseCorrection
    • MaxNegPhaseCorrection

    Below the article regarding these keys and the configuration :
    https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/configure-w32ime-against-huge-time-offset

    Regards,

    0 comments No comments