RE: time server help!!!

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: frank (frank_at_discussions.microsoft.com)
Date: 01/13/05


Date: Thu, 13 Jan 2005 10:59:06 -0800

This w32tm /resync /rediscover command only works with XP client when I try
it on windows 2000 client I get the following:

w32tm [ -tz | -s [computer] | -adj | -adjoff | -source | -once ]
      [-test] [-v] [-p <port>] [-period <freq>]

    Primary options:
    -tz print the local time zone info and exit.
    -s [<computer>] force the given computer (or the local computer if
              none is given) to resynchronize, then exit.
    -adj set the computer's system clock frequency to the last
              frequency determined during synchronization, then exit.
    -adjoff set the computer's system clock frequency the system
              default, then exit
    -source choose a synchronization source, then exit. Note that a
              source is chosen before each synchronization, so this is
              useful only in showing that a source could be found.
              Remember to use -v to see the output.
    -once do only one synchronization, then exit.
    Otherwise, run continuously as a client, synchronizing the local
              clock until ctrl-c is pressed.

    The program will also run as a server any time the service
    would (when it is on a DC, or when the registry flag is set).

    The following options can be used in conjunction with the above:
    -test prevent the time on the local system from actually
              being modified.
    -v print out a verbose description of what the program is
              doing. This is usually needed since otherwise the
              program produces no output. The exceptions are -s and -tz.
    -p <port> set the server port.
    -period <freq> set the sync period just as in the registry. That is:
              0 == once a day
              65535 == once every 2 days
              65534 == once every 3 days
              65533 == once every week (7 days)
              65532 == once every 45 min until we get 3 good syncs, then
                           once every 8 hrs (3/day)
              65531 == once every 45 min until we get 1 good sync, then
                           once every day
              Otherwise, <freq> times per day.

"Phillip Renouf" wrote:

> Users machines should be syncing their time automatically with a DC in their
> local domain. Try going to one of the workstations with the problem and type
> w32tm /resync at the command line. If that doesn't work try w32tm /resync
> /rediscover
>
> http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/time_w32tm.mspx
>
> Phil
>
> "frank" wrote:
>
> > My users have the wrong time I have create a script net time \\domain /set /y
> >
> > but it will not sync time. I think it is because they do not have privalage
> > to change time . Do I change the privalgae and if so how? or is there another
> > trick to get a no rights user to sync?
> >



Relevant Pages

  • Re: Socket Programming Problem
    ... number to the server and server increments the number and sends it back to ... the client. ... exit(EXIT_FAILURE); ... if(bind(sockfd, (struct sockaddr*) &server_str, ...
    (comp.unix.programmer)
  • Re: [PATCH] I2C update for 2.6.5
    ... Rework memory allocation in i2c chip drivers ... 1* This patch also removes an unused struct member in via686a and fixes ... /* Each client has this additional data */ ...
    (Linux-Kernel)
  • echo client/server give problems if array sizes are different
    ... client asks for user input and then sends that line to the server ... void echo_back(int); ... exit(EXIT_FAILURE); ...
    (comp.unix.programmer)
  • Re: Bidrectional Subprocess Communication
    ... Same thing on the client side. ... Just make sure you close the writing side of the pipe when you have no more data to send, to signal the other side it's OK to exit the read loop. ... No, I mean, since your example is bidirectional, the parent process must still be alive and able to read when the subprocess replies. ...
    (comp.lang.python)
  • Re: Auto Sync Client Time with Server
    ... Should work automaticly if the client is well integrated in the AD-Structure ... Windows 2000 Time Services ... 2000 for the 'loose time synchronization' required by Kerberos. ... requests time synchronization with the domain controller. ...
    (microsoft.public.windows.server.sbs)