Set reliable time source (Registry File)
This code can be found in
Chapter 3 of Active Directory Cookbook, 2nd edition
Purchase XP Cookbook or Networking Recipes for only $25 plus shipping! While supplies last.
Find out how to download all of the Registry File code from this site.
[HKLM\System\CurrentControlSet\Services\W32Time\Parameters\]
Type: REG_SZ – "NTP"
[HKLM\System\CurrentControlSet\Services\W32Time\Config\]
AnnounceFlags: REG_DWORD – 5
[HKLM\System\CurrentControlSet\Services\W32Time\TimeProviders\]
NTPServer: REG_DWORD – 1
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\]
NTPServer: REG_SZ - <Peer1>,0x1,<Peer2>,0x1,<Peer3>,0x1
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\]
SpecialPollInterval: REG_DWORD - <TimeBetweenPollsInSeconds>
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\]
MaxPosPhaseCorrection: REG_DWORD - <MaximumForwardOffsetInSeconds>
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\]
MaxNegPhaseCorrection: REG_DWORD - <MaximumBackwardOffsetInSeconds>
|
This code has been viewed 3639 times.
|
New from the creators of TechTasks.com:
StatSheet.com
|