Time Setup in Active Directory Domain
The issue I had was my domain were not syncing with the real time and I had to find out what strategy should I adopt to configure time management among the servers and systems.
After wondering I found the conclusion and strategy for Time Setup
The PDC should be set on NTP external time sync source and All non-PDC domain controllers should be set to NT5DS (domain hierarchy).
Some command that will be used for troubleshooting this issue have mentioned:
Know status of time replication
In Windows xp
net time /querysntp
In Windows 7 above
w32tm /query /status
To force a computer to synchronize its time with a specific DC, you can run the Net Time command:
Net time \\<DC_name_or_IP> /set /y
To check your DC’s current time settings against an external time server such as time.windows.com, you can run the following W32tm command:
w32tm /stripchart /computer:time.windows.com /dataonly
To Set PDC to external time sync
w32tm /config /manualpeerlist:time.windows.com /syncfromflags:manual /reliable:yes /update
To Set DC to time sync from PDC
w32tm /config /syncfromflags:domhier /update
Now if you want to set setting for PDC and DC follow the cmd
Command for setting PDC to sync form external source and all other DC from domain Hierarchy.
On PDC
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
net time /setsntp:
Net stop w32time & net start w32time
W32tm /config /manualpeerlist:pool.ntp.org(time.windows.com can also use) /syncfromflags:manual /reliable:yes /update
W32tm /resync /rediscover
net stop w32time
net start w32time
On DC
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
net time /setsntp:
Net stop w32time & net start w32time
w32tm /config /syncfromflags:domhier /update
W32tm /resync /rediscover
net stop w32time
net start w32time