Tuesday, January 22, 2008

Synchronize/Update Time on Active Directory DC

Recently while performing some updates on a couple of DC on a Windows only corporate network I noticed the time seemed off by more than 10 minutes. After a little investigation it appears that the time wasn't being updated. Using Google as my dear online search friend I came across this post. The script has been saved to a .bat file that is run on as a schedule task now so the problem is a thing of the past (pun intended).

On the main DC:
NET TIME /SETSNTP:time.windows.com
W32TM /config /reliable:YES
W32TM /resync /rediscover

On all other DCs:
W32TM /resync /rediscover

Thanks Chrissy for the good work on that one and make sure to visit Chrissy's blog.

No comments: