Adjusting Windows time drift without internet on Windows Server 2003

timewindows-server-2003

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.

Best Answer

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