Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


March 13, 2000

How can I configure the time service in Windows 2000?

RSS
Subscribe to Windows IT Pro | See More Time Synchronization Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. [Editor’s Note: Matthew Ellis submitted the registry entries that I list in the table in this FAQ.]

Windows 2000 Kerberos authentication protocol relies heavily on domain controllers (DCs) having a common time. Therefore, Win2K ships with Windows Time Service (W32Time), which takes a hierarchical approach to assigning time, as the following bulleted items show:

  • All client desktops and member servers use their authenticating DCs as the inbound time partner.
  • All DCs in a domain use the PDC Flexible Single-Master Operation (FSMO) as the in-bound time partner.
  • PDC FSMOs use the domain hierarchy to pick their in-bound time partner.

The PDC FSMO becomes the authoritative time source for the enterprise, and you should, therefore, configure the PDC FSMO to gather the time from an external source. Until you complete this task, Event Log events will state that W32Time isn’t configured.

Click here to view image

To configure Win2K to use an external time server, use the command:

C:\> net time /setsntp:192.4.41.40

You can use several external time servers that are based at the US Naval Observatory, including the following examples:

  • ntp2.usno.navy.mil - 192.5.41.209
  • tick.usno.navy.mil - 192.4.41.40
  • tock.usno.navy.mil - 192.5.41.41

However, don’t talk directly to the Navy Network Time Protocol (NTP) servers unless the domain administrator needs to operate a stratum-2 server (and will open it to a large community of users). Domain administrators shouldn’t hit directly on tick.usno.navy.mil, tock.usno.navy.mil, or ntp2.usno.navy.mil. Instead, they should use their ISP’s NTP server (they should have one), unless they have unusual requirements for precision.

Please read http://www.eecis.udel.edu/~ntp/ntpfaq/NTP-s-config.htm#Q-CLIENT-ETIQUETTE before you use the NTP service in Win2K.

When you perform the /setsntp command, it updates registry entry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\ntpserver. Simple Network Time Protocol (SNTP) uses UDP port 123, so you need to ensure that proxy servers or firewalls don’t block this port.

For more information, see ftp://ftp.microsoft.com/ResKit/y2kfix/x86/w32time/w32time.doc to see the w32time.doc file. Although the developers wrote this file for Windows NT 4.0’s w32time program, not for Win2K’s W32Time, the file is still worth reading. You should also read the Microsoft article “Basic Operation of the Windows Time Service” ( http://support.microsoft.com/support/kb/articles/Q224/7/99.ASP).

I’ve listed some of the other registry parameters for W32Time below.

Name Description
LocalNTP (REG_DWORD) According to w32time.doc, setting this value to 1 (W32Time uses an .ini file and sets the value to yes) sets up the local machine as an SNTP server.
Log (REG_DWORD) Setting this value to 1 gets W32Time to write to the System Log when the time is synchronized. The default value is 0.
NTPServer (REG_SZ) This registry parameter is the (S)NTP server to get the time from. You can use the command

net time /setsntp[:serverlist]

to set the parameter from the command line. The file w32time.doc states that BroadcastClient and MulticastClient are reserved names and that you can't use them for NTP servers. However, I don't know what BroadcaseClient and MulticastClient stand for.
Period (REG_SZ) See w32time.doc and the Microsoft article that I noted above.
PrimarySource (REG_SZ) This registry entry lists the NetBIOS names of all the network Master Time Servers. You must prefix each name with two backslashes (\\) and separate names by semicolons (;).
RandomPrimary (Unknown type, probably a REG_DWORD) This registry entry selects a random primary server from the PrimarySource list.
ReliableTimeSource This value is presumably REG_SZ, with the name of the RTS server.
SecondaryDomain (REG_SZ) Setting this value tells a secondary machine which domain to broadcast its Time Request to. The w32time.doc file says that if you leave the entry blank, the secondary machine will query its domain for time information. This feature is very helpful in a master or multiple-master domain model in which network administrators don’t want to set up each domain with its own Primary Time Server.
TAsync See w32time.doc for a detailed explanation.
Type (REG_SZ) NTP/PRIMARY/SECONDARY. See w32time.doc

End of Article



Reader Comments
According to the article on " The windows Time Service " in Windows 200 Server technical article, you can change th port on which the windows SNTP time server runs by:
>w32tm –p port#
in the command line.
Does this option really work? When I type it in, the command line never returns.
Is there another way to accomplish this, i.e. change the port number?
How can I check that the NTP server?
Please reply by email. Thank you.



indira semwal November 21, 2003


Very poor Documents & not covering any Details configuration about NTP

Anonymous User January 19, 2005 (Article Rating: )


ok...i run this command. my time is still wrong. Run a similar command on linux and your time is updated immediately. windoze says the command completed successfully, but my time is still off.

Windows sucks.

Anonymous User February 04, 2005 (Article Rating: )


This is useless. Remove this crap.

Anonymous User March 04, 2005 (Article Rating: )


This was truly useless. A tiny bit better than what Microsoft had up, but still useless.

Anonymous User April 06, 2005 (Article Rating: )


useful


Anonymous User May 12, 2005 (Article Rating: )


Usefull, only referenc I found that gave me the Log registry entry so I can see what my timeservice is doing. Since it defaults to 0 with no entry at all in the registry you just have to add it. A few of your other readers need to learn to read if this did not help them.

Anonymous User July 05, 2005 (Article Rating: )


useless

Anonymous User July 16, 2005 (Article Rating: )


me rikey eggrows

Anonymous User July 27, 2005 (Article Rating: )


hi , i hv configured my system as NTP server . kindly telll me hw i can configure other machines on LAN as client to my system

mritunjay November 23, 2005 (Article Rating: )


 See More Comments  1   2 

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Understanding File-Size Limits on NTFS and FAT

A general confusion about files sizes on FAT seems to stem from FAT32's file-size limit of 4GB and partition-size limit of 2TB. ...


Related Events WinConnections and Microsoft® Exchange Connections

Deep Dive into Windows Server 2008 R2 presented by John Savill

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement