You are currently offline, waiting for your internet to reconnect

Using the NET TIME Command to Synchronize Windows XP Workstations

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article was previously published under Q314090
For a Microsoft Windows 2000 version of this article, see 120944.
SUMMARY
This article offers a simple way to keep the time synchronized for all clients in the network.
MORE INFORMATION
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 /yes
Using 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:
307897 HOW TO: Synchronize the Time with the Windows Time Service
time source
Properties

Article ID: 314090 - Last Review: 01/25/2002 12:45:00 - Revision: 1.2

  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
  • kbinfo kbnetwork KB314090
Feedback