Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

徹底解決 Windows Server 時間同步失效問題

編輯:系統常見問題解答

Windows Server 時間同步看似簡單,實際操作常因服務依賴、群組原則、防火牆等多重因素導致失效。本文記錄一次完整排查修復過程。

現象與日誌線索

介面顯示「同步成功」但時間仍偏移。檢視系統日誌發現 Windows Time 服務錯誤事件,提示無法連線 NTP 伺服器。

時間同步介面

系統日誌錯誤

核心檢查三項服務

  1. RPC 服務(Remote Procedure Call)
  2. Windows Time 服務
  3. 確認兩者均為 執行中 且啟動類型為 自動

路徑:Win+R → services.msc

群組原則完整配置

  1. Win+R → gpedit.msc
  2. 路徑:電腦設定 → 管理範本 → 系統 → Windows Time 服務
  3. 啟用全域配置:啟用 Windows NTP 用戶端 設為 已啟用
  4. 配置 NTP 用戶端:設為 已啟用,參數見下表

啟用全域配置

NTP 用戶端說明

關鍵 NTP 參數設定

MaxPosPhaseCorrection / MaxNegPhaseCorrection
參數建議值說明
NtpServertime.windows.com,0x90x9 = 客戶端模式 + 需驗證
TypeNTP使用 NTP 協定
SpecialPollInterval600輪詢間隔(秒),10 分鐘一次
視環境而定最大相位修正秒數

NTP 參數配置

生效步驟

  1. 命令列(管理員)執行:gpupdate /force
  2. 重啟兩項服務:net stop w32time && net start w32time,同步重啟 RPC
  3. 驗證:w32tm /query /status 檢視同步狀態與來源

若仍失效,檢查防火牆 UDP 123 埠是否放行,或嘗試指定內網 NTP 伺服器。時間同步是分散式系統的基石,值得徹底搞定每個環節。

Copyright © Windows教程網 All Rights Reserved