Thursday, July 1, 2010

How to Synchronize Windows Server 2003 with NTP Server?

It is very Important to Synchronize your Domain with an external NTP server to keep the time up to date. I was actually using My domain controller as a NTP Server for all my network. The network is having windows as well as Linux systems. Some of My servers are Database servers so the time of all the servers should be the same.

I followed the following steps to Synchronize Windows Server 2003 Domain controller With An External Time Source.

1. Open Registry Editor (regedit.exe) on the server .

2. Go to HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters. In the right pane double click on Type. Change the value to NTP as shown in the following pic.


3. Go to HKEY LOCAL MACHINE
\SYSTEM\CurrentControlSet\Services\W32Time\Config. In the right pane double click on AnnounceFlags. Change the value to 5, as shown in the following pic.


4.
Go to HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters. In the right pane double click on NtpServer. Enter the IP addresses of any valid ntp time sources you want to sync your server with. Each IP address should be separated by a space. If you use host names for the ntp servers, you must follow the host names with a ,0×1. For example, ntp0.usno.navy.mil,0×1as shown in the following pic.


5. Stop and restart the Windows Time Service. At the Windows command prompt type:

net stop w32time

net start w32time

To have the time synchronize with the new ntp time sources immediately type the following at the command prompt:

w32tm /resync /rediscover


No comments:

Post a Comment