Time service issue after XP3

4

4X

Hi,

Question: How do I fix the problem I'm having with the time service?

Important info: I wrote a batch file that executes upon start up to tell
the computer to sync the computer's time with the official government site in
NY. It worked properly for one year until I installed SP3 2 days ago. It's
called timefrominternet.bat and is in my XP startup group.

C:\>net stop w32time
C:\>net time /setsntp:129.6.15.28
C:\>net start w32time

Problem: line 1 says it couldn't stop the time service
line 2 says command successfully completed
line 3 takes about 2 minutes and the computer won't do
anything else until it times out

each line takes a long time to complete but used to be
instantaneous

Interesting tidbit: After the desktop appears I go to a C:\> prompt and
execute the batch file manually the commands all process properly and very
fast.

Thank you.
 
T

Twayne

Dumb Question: What's wrong with useing XP's
nist.gov to do these things automatically? Just
curious.

No idea why it's running so slow; it'll be
interesting to see what the cause is.

Twayne
 
J

John

I don't understand why you'd set SNTP server whenever your PC starts up.
Does it have problem remembering time server setting?

[warning: this is a guess]
Your problem may be related to services startup sequence. Perhaps SP3
changes services startup sequence or adds a few more services. Your batch
file attempts to stop w32time service while it isn't started yet and
therefore it fails.

How about using XP default w32time? If you'd like to see it sync more often,
change the sync interval to every 1 hour or every minute (if that's
allowed). http://support.microsoft.com/kb/816042 may have the reghack you
need.
 
4

4X

My computer insisted on being 2 minutes off. I would doubleclick on the
date/time icon and set it manually. A little while later it would be off
again. It was set to get time from time.windows.com. I don't know if that
site was off by 2 minutes or if it was an internal problem. My computer used
to be on a domain in a local network so maybe it got time from the local
server. It annoyed me. So I decided to request time from a source I trust.

John said:
I don't understand why you'd set SNTP server whenever your PC starts up.
Does it have problem remembering time server setting?

[warning: this is a guess]
Your problem may be related to services startup sequence. Perhaps SP3
changes services startup sequence or adds a few more services. Your batch
file attempts to stop w32time service while it isn't started yet and
therefore it fails.

How about using XP default w32time? If you'd like to see it sync more often,
change the sync interval to every 1 hour or every minute (if that's
allowed). http://support.microsoft.com/kb/816042 may have the reghack you
need.


4X said:
Hi,

Question: How do I fix the problem I'm having with the time service?

Important info: I wrote a batch file that executes upon start up to tell
the computer to sync the computer's time with the official government site
in
NY. It worked properly for one year until I installed SP3 2 days ago.
It's
called timefrominternet.bat and is in my XP startup group.

C:\>net stop w32time
C:\>net time /setsntp:129.6.15.28
C:\>net start w32time

Problem: line 1 says it couldn't stop the time service
line 2 says command successfully completed
line 3 takes about 2 minutes and the computer won't do
anything else until it times out

each line takes a long time to complete but used to be
instantaneous

Interesting tidbit: After the desktop appears I go to a C:\> prompt and
execute the batch file manually the commands all process properly and very
fast.

Thank you.
 
J

John Wunderlich

Hi,

Question: How do I fix the problem I'm having with the time
service?

Important info: I wrote a batch file that executes upon start up
to tell the computer to sync the computer's time with the official
government site in NY. It worked properly for one year until I
installed SP3 2 days ago. It's called timefrominternet.bat and is
in my XP startup group.

C:\>net stop w32time
C:\>net time /setsntp:129.6.15.28
C:\>net start w32time

Problem: line 1 says it couldn't stop the time service
line 2 says command successfully completed
line 3 takes about 2 minutes and the computer won't
do
anything else until it times out

each line takes a long time to complete but used to
be
instantaneous

Interesting tidbit: After the desktop appears I go to a C:\>
prompt and execute the batch file manually the commands all
process properly and very fast.

Thank you.

You don't need to stop and restart the time service.

Try the following sequence:
net time /setsntp:129.6.15.28
w32tm /config /update
w32tm /resync /rediscover

The first two instructions probably only have to be done once. The last
one should start an immediate resync process.

HTH,
John
 
J

John Wunderlich

Accidental re-wrap...
Should be:

net time /setsntp:129.6.15.28
w32tm /config /update
w32tm /resync /rediscover

-- John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top