Link to home
Start Free TrialLog in
Avatar of SIDESHOWBLAH
SIDESHOWBLAHFlag for United States of America

asked on

quick way to force a time sync on Win2003/2008

I have a small network with :

Windows 2003 r2 Svr - Domain controller
Windows 2003 Svr - Web svr
Windows 2008r2 Svr - Application svr

The times on the servers seems to be close, but the Web svr is maybe 10 seconds off.  Is there a quick way to force it to sync with the DC?  And then to sync the W2k8 svr to the DC as well just in case it is not sync'd?  Should n't these servers be logging errors if they are unable to sync their time with the DC?   thanks.
Avatar of Jaroslav Mraz
Jaroslav Mraz
Flag of Slovakia image

http://support.microsoft.com/kb/307897

it logs failtures

time server can be simple installed by add or remove features.
Avatar of Winsoup
Winsoup

Do you have the DC set as the time server in DHCP server options?
If not then aren't going to know where to look for their time.

If it is set, you can run "w32tm /resync" from a command prompt and it will sync with your time server.
It won't be an issue unless they are 5 minutes off or more. That said, I usually recommend sync'ing time to an external time server.

You can google for a whole slew of answers, but this seems the most technically complete :

http://social.technet.microsoft.com/Forums/windowsserver/en-US/96278628-03a1-4b3d-90d9-2208a65a1210/windows-2008-internet-time-sync
Avatar of SIDESHOWBLAH

ASKER

None of these servers is using DHCP, all IPs are assigned manually.
w32tm /resync (from elevated command prompt on 2008+)
Take these commands and save them into one batch file. Add a daily scheduled task to run the file and it will keep your server's time up to date.

net stop w32time
net start w32time
w32tm /config /manualpeerlist:129.6.15.28,0x8 /syncfromflags:MANUAL /reliable:yes /update
w32tm /resync /rediscover
net stop w32time
net start w32time

I've used it before for the same problem.
TG-TIS.  This batch works on W2003 and W2008?
I run it on a 2003 server that is a DC in a domain with 2008 DC's also.
use the PSexec tool and run the commands remotely on all systems
SIDESHOWBLAH

if you read the MS article what i posted there are same informations with comments why and what

http://support.microsoft.com/kb/307897
Hi Jaroslav Mraz, the request from SIDESHOWBLAH is how to set time on Windows servers.

Your posting appears to use the same commands I provided in the script but it only mentions Windows XP.
Here is a link showing screen prints of the process on Windows Server 2008 R2. Hope this helps.

http://adriank.org/windows-server-2008-r2-sp1-sync-time-external-time-source/
ASKER CERTIFIED SOLUTION
Avatar of Tony Giangreco
Tony Giangreco
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did this resolve your time problem?