Article ID: 314090 - View products that this article applies to.
This article was previously published under Q314090
For a Microsoft Windows 2000 version of this article, see 120944
This article offers a simple way to keep the time synchronized for all clients in the network.
In a network that has varied network client software, different workgroups, and different domains, maintaining a logon script that issues a net time command can become complex. The solution to keeping all workstations' time synchronized with a particular server is either to run a logon script for each workstation or to have each workstation run a batch file on its own after logging on to the network.
For example, assume that you have a server named Timesrv that has a reliable system clock. Here is an example batch file that can either run from the workstation or be called from (or be part of) a logon script:
net time \\timesrv /set /yesUsing just a server name instead of using the /domain or /workgroup parameter avoids the complexity of maintaining different logon scripts or batch files for the different types of network client software. If all of your workstations run the same type of network client software, you can use the /domain or /workgroup parameter. However, in a network that has a variety of network client software, it is easier to use the \\computername parameter.
Note that the net time command is enabled by default on all Windows XP workstations.
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/307897/EN-US/ )HOW TO: Synchronize the Time with the Windows Time Service
Contact us for more help
Connect with Answer Desk for expert help.