Windows NTP

To keep the time in sync across your Windows estate you can configure NTP. Some people prefer to sync the Domain Contollers to a timesource then sync all other servers to the Domain Controllers. Others sync all servers to the same timesource.

Check

To test connection th the NTP server...

w32tm /query /peers

Configure NTP timesource

Using Registry Editor...

regedit

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

  • Change the value of Type to NTP

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config

  • Change the value of AnnounceFlags to 5

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer

  • Change Enabled to 1

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

  • Change NtpServer to 169.254.169.254,0x9

The IP address needs to point to your timesource (the example is an OCI timesource that should only be used in an OCI tenancy)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient

  • Change SpecialPollInterval to an interval in seconds (e.g. a value of 900 equates to 15 minutes)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config

  • Change MaxPosPhaseCorrection to an interval in seconds (e.g. a value of 1800 equates to 30 minutes)

  • Change MaxNegPhaseCorrection to an interval in seconds (e.g. a value of 1800 equates to 30 minutes)

Restart the time service...

net stop w32time && net start w32time