Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to set the time on a Windows 2008 server via an internet clock server from a command line, and ensure that Windows 2008 doesn't do it by itself.

I will use this for a .cmd file which looks like this:

goto start

The purpose is to ensure, that the server has the correct time, but that the time doesn't change while the app is running.

I tried to look at w32tm and "net time", but none of those seem to work. Any ideas?

share|improve this question
is this server a virtual machine? – wullxz May 31 '11 at 21:07

Install and configure NTP to synchronize to your external server(s). I suppose NTP is already in Windows 2008.

NTP corrects the time in very little steps, so you won't notice it and you will have always the right time.

Or what do you really mean with "the time doesn't change while the app is running" ? Do you want to stop the system clock? This is probably not possible ...

share|improve this answer
Basically, I noticed that the system clock goes backwards on sundays at 00:00 UTC on that machine, and the application doesn't seem to tolerate that the time goes backwards. Since the machine is a completely clean Windows 2008 installation with just that app, I strongly assume that Windows 2008 is preconfigured to adjust the time on sundays at 00:00, and that the hardware simply has a clock that goes too fast. Therefore, I have disabled the built-in time sync in Windows 2008. – Lars D Feb 10 '11 at 6:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .