Logo
Info Security
News
Advisories
 
WebKnight
Features
Download
Support
SQL Injection
Robots
Hot Linking
DoS
Blocklists
Googlebot Verifier
Testimonials
 
Log Analysis
Features
Download
Manual
 
Databases
User Agents
Http Headers
 
Members
Login
 

Using a time server in Windows

To synchronize the time on a machine with an external source you can use the net time command. This can be done in many ways.

One way is by using the net time command in a batch file. This is the old way and you need administrator/superuser privileges when running the batch file. In Windows 2000 the time service was introduced which does this for you. If your computer is a member of a domain, the time service will synchronize the local time with the one of a domain controller. This domain controller will do the same with the PDC, which will does the same with the forest root. For the forest root or if your computer is not in a domain you can synchronize with any available SNTP server (time server).

net time /setsntp:
There are several SNTP time servers run by the U.S. Naval Observatory that are satisfactory for this function, for example:
ntp2.usno.navy.mil at 192.5.41.209
tock.usno.navy.mil at 192.5.41.41

SNTP uses User Datagram Protocol (UDP) port 123.

For Windows 2008:

w32tm /config /manualpeerlist:time.windows.com,0x8 /syncfromflags:MANUAL /reliable:yes
w32tm /config /update
net stop w32time
net start w32time
w32tm /resync /rediscover
Resources

Published: 3/07/2002Document Type: HOWTO
Last modified: 22/03/2010Target: Administrator
Visibility: PublicLanguage: English

[top] Print Edit


Comments (use this form to send comments to the author of the page):
Text:
How much is 3
3
+ 3 ?
E-mail: (optional)