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.

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.

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. See the help center for guidance on writing a good question.

Read more about locked posts here.


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. http://technet.microsoft.com/en-us/library/cc794823(WS.10).aspx

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: http://support.microsoft.com/kb/816042

Link explaining the limits of Windows time service: http://support.microsoft.com/kb/939322

  • 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 pool.ntp.org. – Jeremy Feb 22 '11 at 13:05
  • I want to point the server at pool.ntp.org 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

PowerShell: sync system time with Internet time server

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