1. 修改注冊表項
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
Enabled 設定為 1(默認0)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\
AnnounceFlags 設定為 5 (默認 10)
Value | Meaning |
---|---|
0 |
Timeserv_Announce_No, Reliable_Timeserv_Announce_No. The domain controller does not advertise time service. |
1 |
Timeserv_Announce_Yes. The domain controller always advertises time service. |
2 |
Timeserv_Announce_Auto. The domain controller automatically determines whether it should advertise time service. |
4 |
Reliable_Timeserv_Announce_Yes. The domain contoller will always advertise reliable time service. |
8 |
Reliable_Timeserv_Announce_Auto. The domain controller automatically determines whether it should advertise reliable time service. |
2. 禁用防火牆或設置例外,UDP 123端口。
3. 運行 services.msc,將Windows Time服務設置成
自動(延遲啟動)
Win7下如果設置成自動,下次重啟后此服務會被停止,原因不詳。
經實驗,延遲啟動也並不需要用戶登錄即可啟動。
4. 重啟動校時服務:net stop w32time && net start w32time
網絡設備(如cisco、h3c交換機……)不能正常同步NTP服務器時間:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\LocalClockDispersion
值修改為0 (默認為0x0000000a)
轉自:http://blog.sina.com.cn/s/blog_671c54fe0102v4wy.html