Configuring Windows 2000 to use the Network Time Protocol (NTP)
This page tells you how to set your Windows 2000 computer to syncronize the clock to a network server using the Network Time Protocol (NTP).
Last updated: 23 September 2011
NTP (the Network Time Protocol) is a method by which computers on a network can automatically keep their clocks in sync. If you want to use NTP then you will need the name or IP address of at least one NTP server. Examples are time.apple.com or time.windows.com. It is best to use the same server as is used by other computers at your site.
Windows XP (and Vista) allows you to set an NTP server from the control panel. Windows 2000 does not. If you have Windows XP or later then just go to the Date/Time control panel item and enter the name of your time server. If you have Windows 2000 then choose one of the two methods below.
(Early versions of Windows 2000 used the NT 4.0 version of the W32Time service, and this page originally documented how to change those settings. If you have such a computer you should upgrade it. The earlier instructions are still reproduced below.)
Windows 2000 W32Time serviceConfiguration parameters for the W32Time service are now stored in the registry (since at least Windows 2000, Service Pack 4, and perhaps earlier). You can change the settings either via the command line or by editing the registry directly. Either way, you must be logged on as the Administrator to change the time source.
Windows uses a simplified version of the Network Time Protocol (NTP), which is called SNTP, so you will notice references to both NTP and SNTP here and in the Microsoft documentation.
Command LineTo give commands to Windows on the command line you can either use the mouse to pull down Start -> Programs -> Accessories -> Command Prompt, or you can select Start -> Run... and enter "command" as the file to open. Remember, you must be the Administrator.
To see the current time server setting give the commandTo set the time server give a command likenet time /querysntpOnce you change the server you should restart the time service with the commandnet time /setsntp:time.apple.comThis information was extracted from Microsoft Support Knowledge Base article 216734: " How to configure an authoritative time server in Windows 2000net stop w32time && net start w32time
Editing the RegistryThese instructions tell you what to do to enable or alter the use of the Network Time Protocol (NTP) on Windows 2000 by editing the registry. This information was extracted from Microsoft Support Knowledge Base article 223184: "Registry entries for the W32Time service"
Once you have made these changes to the registry, you need to stop and restart the Time Service, and make sure that it is started automatically at boot time. To do so:
- From the "Start" menu select "Run..." and enter "regedt32".
- Find the window for HKEY_LOCAL_MACHINE and then open the following subkeys (they look like sub-folders): SYSTEM\CurrentControlSet\Services
- Find and highlight the key W32Time
- Make a backup copy of this key (just in case) by saving it to a file. Pull down Registry->Save Key and save to a file called W32Time.reg (or another appropriate name).
- Open the W32Time key (double click on it) and select the "Parameters" subkey (subfoler).
- Find the item "NtpServer" and set its value to the server name or IP address. If this value does not exist (which is likely the first time you configure the service) then highlight the "Parameters" key and pull down the Edit menu to "Add Value...". The value name is "NtpServer" and the type is "REG_SZ". Then enter the server name or IP address as the String value.
- Verify that the following items exist with the proper values:See the MS suport article for alternate choices for the Period. Setting LocalNTP to "1" would make your machine a time server, not just a client, which you probably don't want to do.
Type NTP Period SpecialSkew NtpServer <IP address or name of server> LocalNTP 0
You may specify more than one time server by separating the entries with spaces (don't use commas).
- When you are done, pull down Registry->Exit.
- Right click on "My Computer" and select "Manage".
- Open "Services and Applications" and select "Services"
- Find the service named "Windows Time" and double-click on it to open the properties dialog.
- Make sure the start type is "Automatic". If the service is running then stop it. Then start the service.
NT 4.0 W32Time serviceThe W32Time service from Windows NT 4.0 appears to work also in early versions of Windows 2000. You may enable this service by performing the following steps as the Administrator:
- Using a text editor (such as Notepad or Wordpad) create a file called C:\WINNT\W32Time.INI containing:
[W32Time] Type=NTP Period=2 TASync=no NTPServer=time.apple.com Log=yes LocalNTP=no
Replace time.apple.com with the name of your desired time server (eg. louie.udel.edu, which is a stratum 2 server.)
- Enable the Windows Time service by doing the following:
- Right click on "My Computer" and select "Manage".
- Double click on "Services and Applications", then double click on "Services"
- Find the "Windows Time" service at the bottom of the list, right click on it and select "Properties" from the menu.
- Under "Startup type:" select "Automatic".
- Under "Server status:" press "Start".
- Press "OK".
- Rath, Christopher, Window 2000 Network Time Protocol Crib Sheet, http://www.rath.ca/Misc/W2K_NTP_Crib_Sheet.shtml
- Microsoft Support: The Windows Time Service
- Microsoft TechNet: Registry entries for the W32Time service
Last modified: 23 September 2011
Copyright © 2011 by Spy Hill Researchhttp://www.spy-hill.com /~myers/help/windows/W32Time.html