w32tm won't change time backwards

Posted on 2006-06-07
Last Modified: 2008-02-01
I've set up a scheduled task on my W2K-SP4 machine which runs `w32tm -once` periodically, but I've noticed that the time is not being synced to my linux ntp box running ntpd.
My W2K box's clock seems to be running fast, and when I run w32tm the ouptut contains:
"Skewing for backwards, badj, btime = <nnnnn> <nnnnn>"
I'm assuming that it doesn't allow the time to be moved backwards, (is badj "Bad Jump"?)

However, if I manually change the time to 2 hours ahead of time, and run w32tm, it syncs ok.
(Actually, I kept moving the time ahead by a minute at at a time, and resyncing. I found the w32tm syncs if the client time is 4 min or more in the future
Is there any way of forcing w32tm to change the time (I've tried the -s switch but it doesn't make a difference)

Question by:oobayly
    LVL 82

    Accepted Solution

    You're just not patient enough. If the time on your Windows machine is three minutes or less ahead of the ntp time, the time is slowed (and not corrected immediately) until it's correct again.
    But why use the scheduled anyway? If this is a stand-alone machine or a PDC Emulator, you can use this (with being your ntp machine's IP address):
    net time /setsntp:
    net stop w32time
    net start w32time
    and let the time service do the rest.
    If the machine happens to be a domain member of an AD domain, just do nothing. It will automatically synchronize with the authenticating DC.

    Basic Operation of the Windows Time Service
    LVL 15

    Author Comment

    My bad, I hadn't read the documentation properly. I had always assumed that running `net start w32time` was a server, not a client.
    I take it that all I have to do is set the "Windows Time Service" to start automatically after I've run `net time /setsntp:myntpserver`

    Thanks, it does appear the patience is a virtue :D
    LVL 15

    Author Comment

    As usual it was a case of RTFM!
    I've been running tcpdump on the machine running ntpd and have seen that the client running w32time has been polling it every so often. No obvious pattern, but I guess that's because it polls it depending on how the system clock is acting.


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Windows 2000 Kerberos problem 5 295
    Print Server: How to Create it? 1 748
    schedule script execution in windows 2000 3 115
    Windows 16 332
    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now