MLH <CR**@NorthStat e.net> wrote in
news:4q******** *************** *********@4ax.c om:
Oops...
First post was missing a few lines...
C:\DB\TimNall>n et time /set
Could not locate a time-server.
More help is available by typing NET HELPMSG 3912.
The net time /set command is what's failing for me.
I don't understand what you're asking.
Your first question looked like you wanted to set time by a
recognized time server, and that it wasn't working. I tried it, and
it doesn't work for me, either.
This new post looks like a completely different question.
Have you gone through the steps in this article:
http://msdn.microsoft.com/library/de...l=/library/en-
us/dnw2
kmag01/html/TimeWin2K.asp
I can't seem to get it to work on my computer either, but the
">w32tm -once" command seems to work, though it may be that it only
worked after I ran your first command. That is, it appears that the
/setsntp switch only sets which time server is used, which you can
check by running "net time /querysntp". If you run:
net time /setsntp:tick.us no.navy.mil
and then check "net time /querysntp", it will return
tick.usno.navy. mil. If you then run:
net time /setsntp:time.ni st.gov
and then check "net time /querysntp", it returns time.nist.gov.
Now, if you run one of those /setsntp commands and then run
"w32tm -once" it appears to me that it sets the time, as long as
your firewall lets you through to the remote time server.
You should be able to script this and use SHELL to execute it.
You'll probably want to direct the output of w32tm to NUL, though.
--
David W. Fenton
http://www.bway.net/~dfenton
dfenton at bway dot net
http://www.bway.net/~dfassoc