Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Any idea, anyone?

share|improve this question
1  
To whoever down voted this question, have you considered leaving a comment informing the OP why you've down voted this so the question can be improved (like SF asks you to)? It seems like a perfectly good question to me. +1 to counter the down vote. –  Bryan Feb 23 '11 at 14:41
add comment

2 Answers 2

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

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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