Server Fault is a question and answer site for system and network administrators. 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 a command line tool that adjusts the time of a Windows 2008 server, using an internet clock. The purpose is to adjust the time in a script, when other apps from that script are not running.

It is not an option to use the built-in NTP service because that makes some apps on this server fail - note, that this server is used in an industrial environment with no PCs on the network and no Windows update or similar applied.


locked by HopelessN00b Jan 22 '15 at 3:02

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Jan 22 '15 at 3:01

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Not sure why you would want to do this with a script. Your best bet is to set an authoritative time service. See this technet article.

EDIT due to more information in the question and comments. There is no way you can prevent the server from adjusting the clock if it's getting time from another source. It seems that your best solution is to install a time server. I do this on my network because we don't have a connection to the internet. We currently use Symmetricom S250 devices synced to a GPS signal. Also note that the Windows OS does not support very accurate time but there are software bundles to fix that.

Link to set an external NTP server:

Link explaining the limits of Windows time service:

The Windows 2008 server is an industrial computer, that is on a firewalled network that does not have any PCs attached. It is not part of a domain or anything similar. Your link does not seem to solve the problem. – Lars D Feb 22 '11 at 12:39
It would be helpful if you explained what you want the script to do, and more importantly, why you simply don't want to point your server at – Jeremy Feb 22 '11 at 13:05
I want to point the server at or similar, but I want to be 100% sure that the system time does not change unless I ask it to. For our industrial purpose, this is very important. – Lars D Feb 23 '11 at 10:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.