Difference between revisions of "Windows NTP Setup"
From Tech-Wiki
(Created page with "Category=Microsoft Registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters When the synchronization type is set to "Nt5DS", Windows Time Service s...") |
|||
Line 1: | Line 1: | ||
− | [[Category | + | [[Category:Microsoft]] |
Registry: | Registry: | ||
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters | HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters | ||
Line 5: | Line 5: | ||
When the synchronization type is set to "Nt5DS", Windows Time Service synchronizes its time resource with the network domain controller. Alternatively, setting the type attribute to "NTP" configures Windows Time Service to synchronize with a specified NTP time server. The NTP server is specified by either its Domain Name System (DNS) name or its IP address these are specified using the "NtpServer" value name. | When the synchronization type is set to "Nt5DS", Windows Time Service synchronizes its time resource with the network domain controller. Alternatively, setting the type attribute to "NTP" configures Windows Time Service to synchronize with a specified NTP time server. The NTP server is specified by either its Domain Name System (DNS) name or its IP address these are specified using the "NtpServer" value name. | ||
+ | To set manually: | ||
w32tm /config /manualpeerlist:193.202.225.96 | w32tm /config /manualpeerlist:193.202.225.96 | ||
w32tm /config /syncfromflags:MANUAL | w32tm /config /syncfromflags:MANUAL | ||
+ | Then sync: | ||
w32tm /resync | w32tm /resync | ||
− | or | + | or |
net stop w32time | net stop w32time | ||
net start w32time | net start w32time | ||
+ | To check: | ||
w32tm /monitor /computers:localhost | w32tm /monitor /computers:localhost | ||
− | w32tm /stripchart /computer:msdc-ldn01p +offset means server is ahead of pc , - server is behind pc | + | w32tm /stripchart /computer:msdc-ldn01p |
+ | +offset means server is ahead of pc, - server is behind pc |
Revision as of 08:49, 30 March 2011
Registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
When the synchronization type is set to "Nt5DS", Windows Time Service synchronizes its time resource with the network domain controller. Alternatively, setting the type attribute to "NTP" configures Windows Time Service to synchronize with a specified NTP time server. The NTP server is specified by either its Domain Name System (DNS) name or its IP address these are specified using the "NtpServer" value name.
To set manually:
w32tm /config /manualpeerlist:193.202.225.96 w32tm /config /syncfromflags:MANUAL
Then sync:
w32tm /resync or net stop w32time net start w32time
To check:
w32tm /monitor /computers:localhost w32tm /stripchart /computer:msdc-ldn01p +offset means server is ahead of pc, - server is behind pc