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 have Windows Server 2003 on a local LAN that has no internet connection, and need somewhat accurate timing.

Unfortunately currently Windows loses about 1-2 minutes every week, which is why I have to manually log in every weekend and adjust the time to the correct time.

Is there a way I can manually adjust time drift to correct for this behaviour? There is a clear, constant drift - the clock is e.g. never ahead, and always delayed by roughly the same amount.

share|improve this question
3  
Is that specific server the only one without a network connection? i.e. could you set up a different server as an NTP time source and have this server sync from it? –  MDMarra Nov 14 '12 at 13:42
    
Keep in mind that having the clocks on all the machines agree with one another and ensuring the time is accurate are essentially two different but related problems. If you solve one, you invariably end up having to solve the other. –  RobM Nov 14 '12 at 13:46
add comment

2 Answers

up vote 4 down vote accepted

The following PowerShell one-liner will do it:

Set-Date (Get-Date).AddMinutes(2)

So set a scheduled task to run a powershell script with that command. You might need to set the powershell execution policy to run PowerShell scripts on your machine.

Naturally, this assumes your clock drift is as accurate as you claim

share|improve this answer
add comment

GPS is the typical solution for machines that need time sync but have no external network connectivity. There are various software applications, both free and commercial, that can use a GPS receiver to sync the system time (search for "gps windows time sync" and you'll find a number of them). If you'd prefer an embedded device you can also find a number of devices that package up the entire GPS receiver into an Ethernet-attachable NTP server.

I don't have personal experience with either solution so I'm not going to make any specific recommendations. There are quite a number of offerings in both spaces out there, though.

share|improve this answer
    
That is a bit of overkill in my case... –  Cookie Nov 15 '12 at 8:05
    
Bear in mind that you can get a USB GPS receiver for sub-$50 and use a piece of free software and never have to worry about time drift again. –  Evan Anderson Nov 15 '12 at 13:02
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.