mvalpreda
asked on
Best way to sync time on Windows 2008 R2?
I have a server that seems to go crazy with time every so often. I know there is built-in time sync in Windows and I typically do this on DCs.
w32tm /config /syncfromflags:manual /manualpeerlist:pool.ntp.o rg
w32tm /config /reliable:yes
w32tm /config /update
w32tm /resync
net stop w32time
net start w32time
And add the following to the registry:
HKEY_LOCAL_MACHINE\SYSTEM\ CurrentCon trolSet\Se rvices\W32 Time\TimeP roviders\N tpClient\S pecialPoll Interval
"SpecialPollInterval"=dwor d:00000384
"SpecialInterval"=dword:00 000001
Is that the best way to do it? Something I am missing? Twice this week this machine has been 30-50 minutes off and preventing logins.
w32tm /config /syncfromflags:manual /manualpeerlist:pool.ntp.o
w32tm /config /reliable:yes
w32tm /config /update
w32tm /resync
net stop w32time
net start w32time
And add the following to the registry:
HKEY_LOCAL_MACHINE\SYSTEM\
"SpecialPollInterval"=dwor
"SpecialInterval"=dword:00
Is that the best way to do it? Something I am missing? Twice this week this machine has been 30-50 minutes off and preventing logins.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This is the best way to do it. Only idea of the top of my head for the time changing is a dying motherboard battery.
ASKER
The PDCe is a VM and what is crazy is that the time is supposed to sync from the host, and the host was out of wack as well.
It looks like I can consolidate a few commands like this:
w32tm /config /manualpeerlist:”us.pool.n tp.org,0×8 pool.ntp.org,0×8¿ /syncfromflags:MANUAL /reliable:yes /update
net stop w32time
net start w32time
I'll make sure only the PDCe is going out and the rest are looking for time information on AD.
It looks like I can consolidate a few commands like this:
w32tm /config /manualpeerlist:”us.pool.n
net stop w32time
net start w32time
I'll make sure only the PDCe is going out and the rest are looking for time information on AD.
If this is Vm, just remove VM time sync between host and guest (VMware \ Hyper-V)
Rest of the settings already you have done
Then check your PDC system events for 35 and 37 for successful time sync
Rest of the settings already you have done
Then check your PDC system events for 35 and 37 for successful time sync
ASKER
Funny is that I set up us.pool.ntp.org and pool.ntp.org and I have an event 35 stating it is talking to NIST. Not that I mind....but not what I had configured....
The time service is now synchronizing the system time with the time source time.nist.gov (ntp.m|0x0|0.0.0.0:123->24 .56.178.14 0:123).
The time service is now synchronizing the system time with the time source time.nist.gov (ntp.m|0x0|0.0.0.0:123->24
Please restart the time service once and see what changes happening in events