Sometimes ago I needed to change NTP setting on a Windows Server which is running active directory (AD) service. Not sure why the usual way to set the NTP on Windows 7 or non-AD servers via GUI is not an option. It simply doesn’t have a GUI for you! Anyway after some Google here is the command I used. Assume the NTP server is 192.168.0.150.
w32tm /config /update /manualpeerlist:192.168.0.150,0x9 /syncfromflags:MANUAL /reliable:YES
Then force resync from the NTP source so that the source can be displayed correctly in the next command.
Finally double check if the NTP source is configured correctly
w32tm /query /source
The 0x9 flag is important as I can’t make it work without that. I still not sure what the flag does but according to the article Windows Time Service Tools and Settings this mark the server as Always time server and Automatic reliable time server.