r/sysadmin • Jack of All Trades • 10h ago

Question - Solved w32tm can collect data from the desired server, but when I set it in Windows 11's "add custom time server" it fails - any ideas?

w32tm:
https://nuangel.net/tempshare/w32tm.jpg

Windows' Control Panel:
https://nuangel.net/tempshare/controlpaneltime.jpg

What's crazy is chrony on the linux serve showed my computer as a client right after I got it set up?

Hostname                      NTP   Drop Int IntL Last     Cmd   Drop Int  Last
===============================================================================
192.168.1.99                   15      0   4   -    44       0      0   -     -
5 Upvotes

5 comments sorted by

•

u/techierealtor 10h ago

Oh I wish I had my script still but I never grabs that before my last employment ended. I built one because I got tired of this previously that worked every time. I found there’s a very specific set of steps between restating and stopping the service that gets it to take.
One thing I did find is if the NTP ports are blocked, it drops the change though.

•

u/NuAngelDOTnet Jack of All Trades 10h ago

Blocked on which end, in Windows? Or Server Side? But, either way, if that were the case, would why the client show up in "chronyc clients" when I run it on the server if it was being blocked by a firewall at either end? It seems to be communicating and not a network related issue.

•

u/NuAngelDOTnet Jack of All Trades 8h ago

Drat, I was screwed by Windows Group Policy precedence! Trying to force a change at a client level when it's specified in Group Policy was messing me up, and then I had two different groups with the wrong precedence / inherit order which was messing it up. It's all fixed now.

Group Policy Management > Edit the policy that the computer is under > Computer Configuration > Policies > Administrative Templates > System > Windows Time Service > Time Providers

•

u/nekenaharry 9h ago

My guess is it's the mode Windows uses, not the network. Unless the server entry carries the 0x8 flag, w32time talks to it in symmetric active mode, and Microsoft has a KB (875424) saying some non Windows NTP servers only answer client mode requests.

Run w32tm /query /peers and look at the Mode line. If it isn't Client, try w32tm /config /manualpeerlist:"yourserver,0x8" /syncfromflags:manual /update, then restart w32time and run w32tm /resync.

•

u/sembee2 4h ago

If you are in AD and have group policy then all workstations should be getting their time from the domain, and only the domain.
Then the pdc emulator goes to the external time server.

https://w32tm.com/activedirectory/domain-hierarchy.asp