FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to synchronize the Client PC Time with Server W2003?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
How to synchronize the Client PC Time with Server W2003?
Posted: Thu Nov 29, 2007 02:47 AM

Dear all,

I've the problem with time at client PC. The user can change it. In the past I've use the Netware and the client PC will get the time from File Server but on Windows how can I do that.

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
How to synchronize the Client PC Time with Server W2003?
Posted: Thu Nov 29, 2007 04:48 PM

Dutch,

in XP: Control Center/ Date and Time/ Internettime

I hope I translated the german expressions correct :wink:

or

net time /setsntp:<timeserver>

kind regards

Stefan
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
How to synchronize the Client PC Time with Server W2003?
Posted: Fri Nov 30, 2007 01:33 AM
At my office, here's how I set it up. Set the lan server to sync its time with one of those public time server while workstations are set to sync with the lan server. On my XP machine, I inserted this in autoexec.nt,
net time \\LanServerName /set /yes
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
How to synchronize the Client PC Time with Server W2003?
Posted: Fri Nov 30, 2007 02:52 AM

I got it.
Thanks for all,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
How to synchronize the Client PC Time with Server W2003?
Posted: Fri Nov 30, 2007 05:26 AM

Hello Dutch,
could you share with us how?
Thanks in advance
Otto

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
How to synchronize the Client PC Time with Server W2003?
Posted: Fri Nov 30, 2007 02:01 PM

The problem with Windows built-in time setting is that it only sets the time once a week. I have seen computers that loose several minutes in a week.

I have free software scheduled, using the Windows scheduler, that sets the time once a day. You can get the software here:

http://tf.nist.gov/service/its.htm

This software is provided by the US Gov. I don't know if it is limited to US time zones or not.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
How to synchronize the Client PC Time with Server W2003?
Posted: Fri Nov 30, 2007 03:46 PM

James,

you can set this parameter in the registry

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\SpecialPollInterval
Reg_DWORD
Dezimal
poll intervall in Seconds (86400 = 1d)

kind regards

Stefan
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
How to synchronize the Client PC Time with Server W2003?
Posted: Fri Nov 30, 2007 04:11 PM

Stefan,

Thanks for the tip. Nice.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion