在某些情況下,使用了最佳化工具和清理助手、或者中了木馬等,會造成Windows Time服務無法啟動,從而造成系統時鐘無法與Internet時間伺服器同步。
關於Windows時鐘無法同步的問題,網路上給出的解決方案基本都是:
1.運行 cmd 進入命令列,然後鍵入
w32tm /register<br />正確的響應為:W32Time 成功註冊。 </p><p>
2.如果上一步正確,用 net start "windows time" 或 net start w32time 啟動服務,也可以進入電腦管理直接啟動Windows Time服務。
3.如果時間同步是伺服器的地址有問題,可以把下列文字複製,建立一個文字文件另存新檔reg檔案,雙擊匯入註冊表:
Windows Registry Editor Version 5.00<br />[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DateTime/Servers]<br />@="6"<br />"1"="time.windows.com"<br />"2"="time.nist.gov"<br />"3"="time-nw.nist.gov"<br />"4"="time-a.nist.gov"<br />"5"="time-b.nist.gov"<br />"6"="210.72.145.44"</p><p>
或雙擊系統托盤下方的時間,在伺服器位址欄輸入國家授時中心伺服器的IP地址(210.72.145.44),然後點擊“確定”按鈕儲存下來就行了。
以上內容來至於互連網絡。
在這裡需要強調並且解決的是,以上第一條命令:w32tm /register 並非總是能成功的,本人就遇到過幾次這種情況。有時候使用w32tm /register 重新註冊時間組件時,會提示拒絕訪問,無法完成註冊,即使是安全模式下也不可行。在這種情況下,如果試圖去啟動Windows Time服務,會提示無法找到模組而啟動失敗。當然,在這種情況下,時鐘同步肯定不能使用。
下面提供該問題的解決方案,該方案是通過維護本人的WIN7系統得出的,不保證所有情況下都能成功(比如system32目錄下的w32time.dll或者w32tm.exe缺失等,此類情況可以通過從其它安裝了相同系統版本的電腦上拷貝對應的w32time.dll和w32tm.exe解決)。
我們運行 regedit 開啟註冊表,定位到:HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time,可以看到幾個關鍵項目,正確的應該是:
Windows Registry Editor Version 5.00</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time]<br />"DisplayName"="@%SystemRoot%//system32//w32time.dll,-200"<br />"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,/<br /> 74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,/<br /> 00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,/<br /> 6b,00,20,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,65,00,72,00,76,00,69,00,63,/<br /> 00,65,00,00,00<br />"Description"="@%SystemRoot%//system32//w32time.dll,-201"<br />"ObjectName"="NT AUTHORITY//LocalService"<br />"ErrorControl"=dword:00000001<br />"Start"=dword:00000003<br />"Type"=dword:00000020<br />"ServiceSidType"=dword:00000001<br />"RequiredPrivileges"=hex(7):53,00,65,00,41,00,75,00,64,00,69,00,74,00,50,00,72,/<br /> 00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,68,00,/<br /> 61,00,6e,00,67,00,65,00,4e,00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,/<br /> 00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,72,00,65,00,/<br /> 61,00,74,00,65,00,47,00,6c,00,6f,00,62,00,61,00,6c,00,50,00,72,00,69,00,76,/<br /> 00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,53,00,79,00,73,00,74,00,/<br /> 65,00,6d,00,54,00,69,00,6d,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,/<br /> 00,67,00,65,00,00,00,00,00<br />"FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,/<br /> 00,01,00,00,00,60,ea,00,00,01,00,00,00,c0,d4,01,00,00,00,00,00,00,00,00,00</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/Config]<br />"FrequencyCorrectRate"=dword:00000004<br />"PollAdjustFactor"=dword:00000005<br />"LargePhaseOffset"=dword:02faf080<br />"SpikeWatchPeriod"=dword:00000384<br />"LocalClockDispersion"=dword:0000000a<br />"HoldPeriod"=dword:00000005<br />"PhaseCorrectRate"=dword:00000001<br />"UpdateInterval"=dword:00057e40<br />"EventLogFlags"=dword:00000002<br />"AnnounceFlags"=dword:0000000a<br />"TimeJumpAuditOffset"=dword:00007080<br />"MinPollInterval"=dword:0000000a<br />"MaxPollInterval"=dword:0000000f<br />"MaxNegPhaseCorrection"=dword:0000d2f0<br />"MaxPosPhaseCorrection"=dword:0000d2f0<br />"MaxAllowedPhaseOffset"=dword:00000001</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/Parameters]<br />"ServiceDll"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,/<br /> 00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,/<br /> 77,00,33,00,32,00,74,00,69,00,6d,00,65,00,2e,00,64,00,6c,00,6c,00,00,00<br />"ServiceMain"="SvchostEntry_W32Time"<br />"ServiceDllUnloadOnStop"=dword:00000001<br />"Type"="NTP"<br />"NtpServer"="time.windows.com,0x9"</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/Security]<br />"Security"=hex:01,00,04,80,84,00,00,00,90,00,00,00,00,00,00,00,14,00,00,00,02,/<br /> 00,70,00,05,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,05,12,00,/<br /> 00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,20,02,00,/<br /> 00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,04,00,00,00,00,00,14,00,/<br /> 8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,00,14,00,9d,01,02,00,01,/<br /> 01,00,00,00,00,00,05,13,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00,01,01,/<br /> 00,00,00,00,00,05,12,00,00,00</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/TimeProviders]</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/TimeProviders/NtpClient]<br />"DllName"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,/<br /> 74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,77,/<br /> 00,33,00,32,00,74,00,69,00,6d,00,65,00,2e,00,64,00,6c,00,6c,00,00,00<br />"Enabled"=dword:00000001<br />"InputProvider"=dword:00000001<br />"AllowNonstandardModeCombinations"=dword:00000001<br />"CrossSiteSyncFlags"=dword:00000002<br />"ResolvePeerBackoffMinutes"=dword:0000000f<br />"ResolvePeerBackoffMaxTimes"=dword:00000007<br />"CompatibilityFlags"=dword:80000000<br />"EventLogFlags"=dword:00000001<br />"LargeSampleSkew"=dword:00000003<br />"SpecialPollInterval"=dword:00093a80<br />"SpecialPollTimeRemaining"=hex(7):74,00,69,00,6d,00,65,00,2e,00,77,00,69,00,6e,/<br /> 00,64,00,6f,00,77,00,73,00,2e,00,63,00,6f,00,6d,00,2c,00,37,00,62,00,37,00,/<br /> 38,00,66,00,65,00,36,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,/<br /> 00,00,00,00,00,00,00</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/TimeProviders/NtpServer]<br />"DllName"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,/<br /> 74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,77,/<br /> 00,33,00,32,00,74,00,69,00,6d,00,65,00,2e,00,64,00,6c,00,6c,00,00,00<br />"Enabled"=dword:00000000<br />"InputProvider"=dword:00000000<br />"AllowNonstandardModeCombinations"=dword:00000001<br />"EventLogFlags"=dword:00000000<br />"ChainEntryTimeout"=dword:00000010<br />"ChainMaxEntries"=dword:00000080<br />"ChainMaxHostEntries"=dword:00000004<br />"ChainDisable"=dword:00000000<br />"ChainLoggingRate"=dword:0000001e</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/TimeProviders/VMICTimeProvider]<br />"Enabled"=dword:00000001<br />"InputProvider"=dword:00000001<br />"DllName"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,/<br /> 74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,76,/<br /> 00,6d,00,69,00,63,00,74,00,69,00,6d,00,65,00,70,00,72,00,6f,00,76,00,69,00,/<br /> 64,00,65,00,72,00,2e,00,64,00,6c,00,6c,00,00,00</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/TimeProviders/VMICTimeProvider/Parameters]</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/TriggerInfo]</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/TriggerInfo/0]<br />"Type"=dword:00000003<br />"Action"=dword:00000001<br />"GUID"=hex:ba,0a,e2,1c,51,98,21,44,94,30,1d,de,b7,66,e8,09</p><p>[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/TriggerInfo/1]<br />"Type"=dword:00000003<br />"Action"=dword:00000002<br />"GUID"=hex:6e,51,af,dd,c2,58,66,48,95,74,c3,b6,15,d4,2e,a1
如果您的電腦有上述問題,那麼會發現註冊表中會少那麼幾項,而且當你試圖將缺失的註冊表添加進去的時候,可能會發現登錄機碼拒絕添加!
依次在 HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time 的子鍵上點擊右鍵,選擇“許可權”,在彈出的對話方塊中,你可能會看到“組和使用者名稱”一項,只有一個“W32Time”項,問題就出在這裡!可以看到,W32Time的註冊項沒有管理員權限,所以我們進行前面的操作時,都以失敗告終。
找到了錯誤原因所在,那麼解決起來就簡單了。我們在許可權對話方塊上點擊下面的“進階”按鈕,在彈出的對話方塊中的“許可權”一欄點擊“添加”,再在出來的“選擇使用者或組”對話方塊中點“進階”,又會彈出一個“選擇使用者或組”的對話方塊,點擊中間靠右的“立即尋找”,下面會列出本機上的一些使用者或組,選擇所示中對應的使用者或組,設定相應的許可權(如果不大瞭解,可以勾選所有許可權)。在中勾選“使用可從此對象繼承的許可權替換所有子物件許可權”。
依次按照上面的說明設定好 HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time 及其子項的許可權,然後重新整理註冊表,會發現子項中多出了一些項目,需要注意的是,在子項 HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/W32Time/TimeProviders 中,應該有三項:NtpClient、NtpServer和VMICTimeProvider,如果有一個類似於xyz的其它項,請刪除。
註冊表設定好之後,再依次進行最開始所說的那幾個步驟,即運行 w32tm /register ,然後啟動Windows Time 服務。如果仍然無法成功,請重新啟動電腦,並在電腦完全啟動後,再運行上述命令。
一般情況下,上述辦法可解決Windows Time 時間同步問題。