-1

I was recently diagnosing a time drift issue for a client located in a different city. Their workstations were having issues accessing the Windows 2019 server due to this drift.

Based on the age of the device, my initial instinct was a dying CMOS battery. I thought maybe AIDA64 might provide those details, but it did not. Another user on here recommended using a program called hwinfo, which after trying on my own device, I found works great, but being unable to install unapproved software on this device, I was unable to use it for my purposes..

SOO.. I first changed the time in the GUI, then continued my other tasks. Over that 1 hour, the clock again drifted by almost 1 min. ..CMOS I ran some cmds, mostly w32tm and saw CMOS as the clock source, but being very far away from the server, and not trusting anyone onsite to change the battery, I reassigned the source to pool.ntp.org and changed related settings, with help from this walk-thru: https://icookservers.blog/2014/09/12/windows-ntp-server-cookbook/

I cannot verify the voltage, but based on

  1. the observed drift over 1hr

  2. reg entry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags set to 10 (this tells the server to sync time to local CMOS clock)

3.the results from w32tm /query /source (Local CMOS clock)

4.the results from w32tm /query /status /verbose (the computer did not resync because no time data was available)

5.Buncha other things it seemed undeniable that all configs pointed to be dependent upon a failing source...

Questions: how reliably will this work as a workaround to prevent this time drift and does anyone know any methods using CMD or PowShell or built in utilities that will provide a V+ reading on the battery?

If it is not a dying CMOS, and if it wasnt caused by the default windows time server settings, what else can I do to figure out the cause?

I personally would love an on-the-clock, out of town trip to change a small cell battery as much as the client would hate it, but in the meantime...

Thanks

1 Answers1

0

Crystals used on PCs are not that accurate or stable. The clock always drifts, regardless of the CMOS battery condition. You can use a time server to sync the clock once a day. If the CMOS battery is dying and the PC is being turned off, then it will lose time. In which case, replace the battery. IT should last 5 to 10 years.

In your case, since it is drifting faster, I would suggest

  1. Taking them to a repair shop to replace the crystals/TCXO
  2. Writing a small program that syncs it faster. I have written such a program some years ago for PCs being used for industrial control. The operator would input the error/drift (once a day) and then the program would distribute the error over the day and correct the clock by half a second at a time. The frequency of change would depend on how much correction was needed. It only takes a few days to bring it into line.
Rohit Gupta
  • 5,096