再檢查register發現
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags 值設為a
其意義為:此設定會強制 PDC 主機宣告本身為可靠的時間來源,並使用內建的 CMOS 時間而不使用外部時間來源。亦即表示不會與其他主機校時。
用以下方式讓校時服務重新恢復運作。
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click the following registry entry:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\
- In the right pane, right-click AnnounceFlags, and then click Modify.
- In the Edit DWORD Value dialog box, under Value data, type 5, and then click OK.
- Enable NTPServer.
- Locate and then click the following registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\W32Time\TimeProviders\NtpServer\ - In the right pane, right-click Enabled, and then click Modify.
- In the Edit DWORD Value dialog box, type 1 under Value data, and then click OK.
- Locate and then click the following registry subkey:
- Exit Registry Editor.
- At the command prompt, type the following command to restart the Windows Time service, and then press ENTER:net stop w32time && net start w32time
- 設定上層校時伺服器 c:>w32tm /config /manualpeerlist:"time.stdtime.gov.tw clock.stdtime.gov.tw tick.stdtime.gov.tw watch.stdtime.gov.tw" /syncfromflags:manual /reliable:yes /update
- 再檢查regedit可以看到NTPServer設定已變成國家時間與頻率標準實驗室的校時主機了。
參考來源:
https://support.microsoft.com/zh-tw/help/816042/how-to-configure-an-authoritative-time-server-in-windows-server
http://blog.miniasp.com/post/2009/06/16/Configure-the-Windows-Time-service-on-the-Domain-Controller.aspx
沒有留言:
張貼留言