Home arrow Hardware arrow ipNTP arrow NTP Information arrow Windows

Timer Server (NTP) with Windows

Synchronization of times with Windows NT, Windows 2000 and Windows XP in the command prompt

First of all, open the command prompt with Start | Programs| Accessories |
Command Prompt and test the connection to the NTP server (in our example the
server IP is: 212.34.181.237) with the ping function by typing the command

C:ping 212.34.181.237

Once this test has been completed successfully, you have to enter the command

C:net time /setsntp:212.34.181.237

to set the NTP server IP.

To test the synchronization with the timeserver, you have to type

C:w32tm -once

once for a single synchronization. The time on the PC will then only deviate from that of the timeserver by a few milliseconds.

To synchronize the PC regularly, you can write the commands in a batch file and put it into the Windows "Task Planer". In this case, there always has to be a connection to the timeserver.

Synchronising times with Windows 2000

Right-click "My Computer" and click into the subsequent "Manage" dialog.
In "Services and Applications", click "Services".
After double-clicking "Windows Time", the following window opens:


time-server-w2k-config
Network Time Server - ipNTP in Windows 2000

The startup time must be set to Automatic. After that, you have to open the
command prompt with Start | Programs | Accessories | Command prompt and
test the connection to the NTP server (in our example the server IP is:
212.34.181.237) with the ping function by typing the command:

C:ping 212.34.181.237

Once this test has been completed successfully, you have to enter

C:net time /setsntp:212.34.181.237 to set the NTP server IP

To test the synchronization with the timeserver, you have to type

C:w32tm

once for a single synchronization. The time on the PC then deviates from that of the timeserver by only a few milliseconds.

To carry out automatic synchronization at regular intervals, enter

C:w32tm –period <Intervalcode>

The following codes are available for updating intervals:

0 Daily
65535 Every second day
65534 Every third day
65533 Weekly
65532 Every 45 minutes

With the last function, the system attempts to synchronize the clock every 45 minutes until it works three times. After that it synchronizes on a daily basis.


Synchronization of times with Windows XP

By double-clicking the system clock, the dialog "Options of date and time"
opens. In the card index flag "Internet time" you must now perform the following settings:.

time-server-w2k-config
Network Time Server ipNTP settings in Windows XP

The default updating interval is one week and could only be adapted in the registry under

"Hkey_Local_Machine\System\ControlSet001\Services\W32Time\TimeProviders\
NtpClient"

with the new DWORD entry "SpecialPollInterval" where you may enter the desired seconds as a decimal value.



Caution:

We got the information for this registry entry from the Internet and do not assume any liability for possible damages.

Please note: Incorrectly managed changes in the Windows registry can lead to irregular closing or starting of the system. Data loss is also possible. Therefore, unskilled operators should not carry out these kind of changes by themselves.

<<
↑


ipcas GmbH is a member of Data Respons Group


Copyright 1988 - 2010 ipcas GmbH

Gundstrasse 15 D-91056 Erlangen Tel.: +49 (0)9131/ 7677-0 Fax: +49 (0)9131/ 7677-78 E-Mail: info@ipcas.de