Digging about Windows features a bit, I found Windows could also be used as an NTP server, and since I’ve been working on a native Windows environment lately, those are great news :)
Among other ways, there are two main ways Windows could set a remote clock:
- Via DC - If remote computer is in a domain, the DC (Domain Controller) is responsible of setting the time
- Via DHCP – if the remote machine has an active DHCP client, Windows can also send the clock via internal clock or fetch the time from a remote NTP server and return the current time to the remote machine.
This article is divided into two groups:
- Windows 2000
- Windows XP/Vista/2003/2008/7
The reason for this division is because Microsoft had changed the Windows Registry values since Windows 2000 (XP and up has much more granularity now), and that using XP and up machines with a Domain Controller turns on this feature by default.
Configuring Windows 2000 to act as an NTP server
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click the following registry subkey:
HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
- In the right pane, right-click ReliableTimeSource, and then click Modify.
- In Edit DWORD Value, type 1 in the Value data box, and then click OK.
- Locate and then click the following registry subkey:
HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
- In the right pane, right-click LocalNTP, and then click Modify.
- In Edit DWORD Value, type 1 in the Value data box, and then click OK.
- Quit Registry Editor.
- At the command prompt, type the following command to restart the Windows Time service, and then press ENTER:
net stop w32time && net start w32time
- Run the following command on all the computers other than the Time Server to reset the local computer's time against the Time Server:
w32tm –s
Configuring Windows Windows XP/Vista/2003/2008/7 to act as an NTP server
- Create a text file and the file format to reg
- Open the file in notepad and copy the following:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\TimeProviders\NtpServer]
"Enabled"=dword:00000001 - Save the file and execute it
- At the command prompt, type the following command to restart the Windows Time service, and then press ENTER:
- net stop w32time && net start w32time
- Run the following command on all the computers other than the Time Server to reset the local computer's time against the Time Server:
- w32tm –s
More information could be found in the below links from Microsoft:
Have fun ^_^