This article was previously published under Q120944
For a Microsoft Windows XP version of this article, see 314090.
In a network with different network client software, different workgroups,and different domains, maintaining a logon script that issues a NET TIMEcommand can become complex. This article offers a simple solution to keepthe time for all clients in the network synchronized.
The solution to keeping all workstations' time synchronized with aparticular server can be solved by either running a logon script for eachworkstation or by having each workstation run a batch file on their ownafter logging on to the network.
For example, assume you have a server named TIMESRV that has a reliablesystem clock. An example batch file that would run either from theworkstation, or get called from or be part of a logon script, would looklike this:
NET TIME \\TIMESRV /SET /YES
Using just a server name instead of the /DOMAIN or /WORKGROUP parameteravoids the complexity of maintaining different logon scripts or batch filesfor the different types of network client software. Please keep in mindthat if all of your workstations are running the same type of networkclient software, you may choose instead to use the /DOMAIN or /WORKGROUPparameter. But, in a network with a variety of network client software, itmight be easiest to use the "\\computername" (without quotation marks)parameter.
NOTE: NET TIME is enabled by default on all Windows NT workstations andservers.
For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:
216734 How to Configure an Authoritative Time Server in Windows 2000
307897 HOW TO: Synchronize the Time Using the Windows Time Service