تنظیمات سرویس Windows Time برای فعال نمودن NTP استاندارد بر روی Domain Controller
رور Active Directory دارای سرویس windows Time میباشد که از طریق آن ساعت کلیه کامپیوترهای دامنه همزمان میگردد.
در شبکه های بزرگ که تعداد تجهیزات شبکه زیاد است لازم است سرویس NTP (Network Time Protocol) بر روی شبکه تنظیم گردد تا ساعت تجهیزات غیر ویندوزی مانند : Switch ، Hypervisior ، UTM ، سرورهای لینوکسی و … از طریق آن بروز شوند.
با انجام تنظیمات زیربر روی ریجستری ویندوز میتوان سرویس Windows Time را بر اساس پروتکل NTP فعال نمود.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
Set the Type value to NTP
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
Set the AnnounceFlags value to 5
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders
Set the NtpServer value to a list of at least three NTP servers
For example, you might set the value to “0x01 1.pool.ntp.org,0x01 2.pool.ntp.org,0x02 3.pool.ntp.org”
Flag Values = (0x01 SpecialInterval, 0x02 UseAsFallbackOnly, 0x04 SymmatricActive, 0x08 Client)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
Set the SpecialPollInterval value to 900
Restart Windows Time Service
دستورات زیر جهت بررسی وضعیت بروز شدن Windows Time قابل استفاده است:
C:\Windows\System32>w32tm /query /status
Leap Indicator: 0(no warning)
Stratum: 2 (secondary reference - syncd by (S)NTP)
Precision: -6 (15.625ms per tick)
Root Delay: 0.2103377s
Root Dispersion: 3.8946460s
ReferenceId: 0x808A8C2C (source IP: 128.138.140.44)
Last Successful Sync Time: 2/12/2019 3:00:21 PM
Source: time.nist.gov,0x01
Poll Interval: 10 (1024s)
منابع
https://avtech.com/articles/1529/configure-windows-windows-system-network-time-server-ntp/
http://www.signage.dtri.com/support/faq/How_to_enable_NTP_Server_in_Windows_Time_service.pdf