Time synchronization is an important aspect for all servers in a Data Center of an organization. An organization should have a master NTP server which should be synced with an external reliable source, for example, the NTP server should be synced with the NPL Time in India for Indian Standard Time (IST). All servers and computers of that organization should be synced with the master NTP server.
If you have an NTP server and want to sync your windows servers with this NTP server then follow the steps given below:
- Open a command prompt (Windows Key + R)
- In the Command Prompt window, type the following line, where peers is a comma-separated list of IP addresses of the appropriate time sources and press ENTER:
w32tm /config /manualpeerlist: peers /syncfromflags:MANUAL
In this case where you have an NTP server type the ip address of the NTP server as given below:
w32tm /config /manualpeerlist:xx.xx.xx.xx /syncfromflags:MANUAL
Press ENTER. You should get a message that the command was completed successfully.
- Type w32tm /config /update
- Press ENTER. You should get a message that the command was completed successfully.
- To immediately synchronize with the external time server, type w32tm /resync and press ENTER. You should get a message that the command was completed successfully.
- Type Exit and press ENTER.
Note: UDP Port 123 should be open on the firewall if a firewall exists between these servers.