How to configure the Windows Time service against a large time offset
On This PageINTRODUCTIONWindows operating systems include the Time Service tool (W32Time service) that is used by the Kerberos authentication protocol. Kerberos authentication will work if the time interval between the relevant computers is within the maximum enabled time skew. The default is 5 minutes. You can also turn off the Time Service tool. Then, you can install a third-party time service. The purpose of the Time Service tool is to make sure that all the computers in an organization that are running Microsoft Windows 2000 or later versions of Windows operating systems use a common time. To make sure that there is an appropriate common time usage, the Time Service uses a hierarchical relationship that controls authority. By default, Windows-based computers use the following hierarchy:
MORE INFORMATIONA review of time rollbacks has shown that computers can adopt time that can be days, months, years or even tens of years in the future or in the past. The following issues can occur when computers roll forward or roll backward in time:
How to protect against time that rolls forward and time rollbacksWhen computers and power cycles are restarted, the BIOS maintains time in the local EPROM that is located on the computer’s motherboard. When Windows starts, the kernel pulls the current time from the BIOS. This current time is used as the initial time until the W32Time service can sync up with another time source.The Windows 32 time service supports two registry entries, the MaxPosPhaseCorrection and the MaxNegPhaseCorrection. These entries restrict the samples that the time service accepts on a local computer when those samples are sent from a remote computer. When a computer that is running in a steady state receives a time sample from its time source, the sample is checked against the phase correction boundaries that the MaxPosPhaseCorrection and MaxNegPhaseCorrection registry entries impose. If the time sample falls within the limits that the two registry entries enforce, this sample is accepted for additional processing. If the time sample does not fall within these limits, the time sample is ignored, and the time service logs the following message in the W32Time private log file: *TOO BIG*If administrators reduce the value for positive and negative phase corrections, administrators can reduce the threat that computers will receive time from invalid time samples for a Windows-based computer. On the other hand, if administrators reduce the value, administrators may prevent computers from being ahead or behind the current time by more than the limits these values impose. Note If the registry entry values for positive and negative corrections are reduced, time will be increased or decreased. The default value for the MaxPosPhaseCorrection and MaxNegPhaseCorrection registry entries in Windows 2000, in Windows XP, in Windows Server 2003, and in Windows Vista is the following value: 0xFFFFFFF This value enables the computer to receive the time that is contained in any time sample, regardless of inaccuracy.In Windows Server 2008, a new default value for the MaxPosPhaseCorrection and MaxNegPhaseCorrection registry entries has been adopted. This new default value is 48 hours. This 48-hour value can be represented as either of the following values:
MAX (0xFFFFFFFF) Note When you set the value to a value other than MAX (0xFFFFFFFF), you can prevent computers from adopting time that is very inaccurate in the scenarios where the computer is restarted or the connectivity to external time sources is disrupted. For example, consider the case in which you have the MaxPosPhaseCorrection and MaxNegPhaseCorrection registry entries set for 48 hours on all domain controllers in the forest. If any single domain controller experiences an unusual time jump of more than 48 hours, the value that you set for the MaxPosPhaseCorrection and MaxNegPhaseCorrection registry entries will prevent other computers from making the same time jump. Therefore, computers that are out of sync can be kept apart from the other computers until the administrator can investigate and take corrective action.Time accuracy is especially important on the forest root primary domain controller (PDC). Because the PDC is the root time source for the domain, inaccurate time changes on the PDC can potentially cause a domain-wide time jump. If you impose phase correction restrictions on the PDC, you can prevent other domain controllers in the forest from accepting the new time. The default value of 48 hours instead of a default value of 5 minutes or 15 minutes is based on the following reasons:
Specific recommendations according to operating system version and computer role are described in the following sections. Windows XP Professional and all versions of Windows Server 2003Domain serversForest root PDC (authoritative time server)We highly recommend that you configure the authoritative time server to collect the time from a hardware source. When you configure the authoritative time server to sync with an Internet time source, there is no authentication. You must reconfigure the following registry entries:
Domain controllers and member servers inside the domainThe MaxPosPhaseCorrection and MaxNegPhaseCorrection registry entries have a default value of 0xFFFFFFFF. This default value means "Accept any time change." We recommend setting this value to 48 hours on all domain controllers. The 48 hours value can also be set on member servers that are running time sensitive-based applications.Note For more information about these registry entries, see the "Windows Server 2003 and Windows XP Time Service registry entries" section. Stand-alone clientsThe MaxPosPhaseCorrection and MaxNegPhaseCorrection registry entries have a default value of 54,000 (15 hours). As a security best practice, we recommend that you reduce this default value. We also recommend that you set the value to 3600 (1 hour) or an even smaller value, depending on time source, on network condition, on poll interval, and on security requirements.Windows Server 2003 and Windows XP Time Service registry entries
http://technet.microsoft.com/en-us/library/cc773061.aspx (http://technet.microsoft.com/en-us/library/cc773061.aspx) The default Windows Time service parameter values that are defined in the Group Policy object (GPO) may not match the default values that are defined in the registry of Windows Server 2003-based domain controllers. When you deploy MaxPosPhaseCorrection and MaxNegPhaseCorrection values to Windows Server 2003 domain controllers by using a GPO, make sure that the GPO is not changing the values of other Windows Time service parameters in the registry. Other Windows Time service parameter values may also have to be changed in the GPO to match the default registry values in the domain controllers.All versions of Windows 2000 Service Pack 4 (SP4)Domain serversForest root PDC (authoritative time server)We highly recommend that you configure the authoritative time server to collect the time from a hardware source. When you configure the authoritative time server to sync with an Internet time source, there is no authentication in manual mode. You must reconfigure the MaxAllowedClockErrInSecs registry entry. The default value is 43,200. The recommended value is 900 (15 minutes) or an even smaller value, depending on time source, on network conditions, and on security requirements. This also depends on the poll interval. We recommend that the poll interval value is set to one hour for every 24 hours.Note For more information about this registry entry see the "Windows Server 2000 SP 4 registry entry" section. Domain controllers and member servers inside the domainThe synchronization type is NT5DS. The time service synchronizes from the domain hierarchy and the time service accepts all time changes. Because NT5DS accepts any time change without considering the time offset, it is very important to set up a reliable forest root time source in the time sync subnet.Note The NT5DS value indicates that the synchronization type is obtained from a registry entry. Stand-alone clientsThe MaxAllowedClockErrInSecs registry entry has a default value of 43,200 (12 hours). As a security best practice, we recommend that you reduce this default value. We recommend that you set the value to 3600 (1 hour) or to an even smaller value, depending on time source, on network conditions, on poll interval, and on security requirements.Windows Server 2000 SP 4 registry entry
APPLIES TO
| Article Translations
|

Back to the top
