Windows 10 is ignoring time changes on Samba 4 DC

Solution 1:

Finally some random w32time related posts let me to the solution. First, logging helps:

w32tm /debug /enable /file:c:\temp\ntpDebug.log /size:102400 /entries:0-300
w32tm /resync
-> Sending resync command to local computer
-> The computer did not resync because no time data was available.

In the logfile, there had been the AD DC listed as time server, but it still claimed to have no time server to ask.

The error message "Tx timestamp not returned and may be unsupported on the current network interface" let me to following microsoft support article.

w32tm /config /manualpeerlist:"dc01,0x8 dc02,0x8" /syncfromflags:MANUAL
net stop w32time
net start w32time
w32tm /resync
-> Sending resync command to local computer
   The command completed successfully.

Obviously Samba 4 doesn't like Windows 10 symmetric active mode requests. Hence, use 0x8 to switch the time client to client mode.

Don't forget to switch off logging:

w32tm /debug /disable

Here we go :)