Re: O.T. - trying to sync w/ nist time server...



MLH <CRCI@xxxxxxxxxxxxxx> wrote in
news:4qs3n1120hhi8tpbhlv0e3u4qserjg9njb@xxxxxxx:

> Oops...
> First post was missing a few lines...
>
> C:\DB\TimNall>net 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/default.asp?url=/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.usno.navy.mil

and then check "net time /querysntp", it will return
tick.usno.navy.mil. If you then run:

net time /setsntp:time.nist.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
.



Relevant Pages

  • RE: time difference, cannot log on
    ... Troubleshooting Time-Related Errors ... After you set the SNTP time server as authoritative, ... More information about the net time command is available at a command ...
    (microsoft.public.win2000.active_directory)
  • Re: Everything was going great untill...
    ... In your first post you said that it took ages to clear ... the temp folder and now you say it takes only a split ... How long does this command take to run? ... What is the usual CPU loading? ...
    (microsoft.public.windowsxp.general)
  • Re: Running commands from a variable file
    ... >> And I ran the command as given in my first post here. ... and running the script you posted (with only the file ... aliases and functions snipped ...
    (comp.unix.shell)
  • Re: time synch problem
    ... Type the following command and then press ENTER: ... net start w32time ... Should look similar like this,a the end you see the actual time server: ... the "reliable" time source instead of assuming its the PDC? ...
    (microsoft.public.windows.server.active_directory)
  • RE: windows 2003 Domain Time server
    ... If you have manually set the SMTP server that the workstations are going to ... net use command in either the logon or to the OUs/ Sites to force the ... use that will tell me what DC is the authrorative time server for the domain? ...
    (microsoft.public.windows.server.active_directory)

Loading