Tuesday, March 6, 2012

Resolving time Sync issue in Windows - Active Directory domain

The DC with the PDCemulator role is the time source in the domain. You can
use this command to configure the PDCEmulator to an external time source:

w32tm /config /manualpeerlist:peers /syncfromflags:manual /reliable:yes /update

With "peers" you can set the time source, either DNS name (time.windows.com)
or an ip address from a reliable time source.

In case you have another DC in domain acting as time server - use above command to point PDCEmulator to point to this time server.

General commands for time sync and time details on servers, DCs.

c:\>Net time (to check time source and current time)
c:\>Net time /domain:domain name /set (local system time with corresponding domain controller)
c:\>Net time /QUERYSNTP (To check current time source)
c:\>w32tm /resync (to sync with configured time server)
c:\>w32tm -once -test –v (watch an attempt to sync this computer to its time source)