Windows 時間服務Windows Time Service

適用於:Windows Server 2016、Windows Server 2012 R2、Windows Server 2012Applies To: Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Windows 時間服務技術參考Windows Time Service Technical Reference

本指南In this guide

  • 如何找出 Windows 時間服務設定的資訊Where to find Windows Time Service Configuration Information
  • Windows 時間服務為何?What is the Windows Time Service?
  • 時間通訊協定的重要性Importance of Time Protocols
  • Windows 時間服務的運作方式How the Windows Time Service Works
  • Windows 時間服務工具和設定Windows Time Service Tools and Settings


在 Windows Server 2003,Microsoft Windows 2000 Server directory 服務名為 Active Directory directory 服務。In Windows Server 2003 and Microsoft Windows 2000 Server, the directory service is named Active Directory directory service. Windows Server 2008 R2 和 Windows Server 2008、directory 服務名為 Active Directory Domain Services (AD DS)。In Windows Server 2008 R2 and Windows Server 2008 , the directory service is named Active Directory Domain Services (AD DS). 本主題中的其餘部分是指到 AD DS,但也適用於 Windows Server 2016 中的 Active Directory Domain Services 資訊。The rest of this topic refers to AD DS, but the information is also applicable to Active Directory Domain Services in Windows Server 2016.

Windows 時間服務,也就是 W32Time 同步處理的日期和時間的所有 AD DS 網域中執行的電腦。The Windows Time service, also known as W32Time, synchronizes the date and time for all computers running in an AD DS domain. 同步處理時間是重要的許多 Windows 服務和業務的應用程式的正常運作。Time synchronization is critical for the proper operation of many Windows services and line-of-business applications. Windows 時間服務使用,以便正確時鐘值或頻率,可指派給網路驗證和資源存取要求同步電腦在網路上的時鐘網路時間通訊協定 (NTP)。The Windows Time service uses the Network Time Protocol (NTP) to synchronize computer clocks on the network so that an accurate clock value, or time stamp, can be assigned to network validation and resource access requests. 服務整合 NTP 與的時間提供者,讓您的企業系統管理員可擴充時間服務。The service integrates NTP and time providers, making it a reliable and scalable time service for enterprise administrators.


Windows Server 2016 之前 W32Time 服務設計時效性的應用程式需求。Prior to Windows Server 2016, the W32Time service was not designed to meet time-sensitive application needs. 不過,Windows Server 2016 的更新現在可讓您實作的 1ms 方案網域中的準確度。However, updates to Windows Server 2016 now allow you to implement a solution for 1ms accuracy in your domain. 查看Windows 2016 正確時間設定為高不正確的環境 Windows 時間服務支援邊界的詳細資訊。See Windows 2016 Accurate Time and Support boundary to configure the Windows Time service for high-accuracy environments for more information.

如何找出 Windows 時間服務設定的資訊Where to Find Windows Time Service Configuration Information

本指南會討論設定 Windows 時間服務。This guide does not discuss configuring the Windows Time service. 有數個不同的主題 Microsoft TechNet 上與「Microsoft 知識庫執行解釋設定 Windows 時間服務的程序。There are several different topics on Microsoft TechNet and in the Microsoft Knowledge Base that do explain procedures for configuring the Windows Time service. 如果您需要設定資訊,下列主題可以協助您尋找適當的資訊。If you require configuration information, the following topics should help you locate the appropriate information.

Windows 時間服務為何?What is the Windows Time Service?

Windows 時間服務 (W32Time) 提供的網路時鐘同步處理的電腦,而不需要廣泛設定。The Windows Time service (W32Time) provides network clock synchronization for computers without the need for extensive configuration.

Windows 時間服務務必 F:kerberos 版本 5 驗證順利運作,因此,到 AD DS 為基礎的驗證。The Windows Time service is essential to the successful operation of Kerberos version 5 authentication and, therefore, to AD DS-based authentication. 任何 Kerberos 感知應用程式,包括最安全的服務,依賴參與驗證要求電腦之間同步處理時間。Any Kerberos-aware application, including most security services, relies on time synchronization between the computers that are participating in the authentication request. AD DS 網域控制站必須也同步時鐘來協助確保複寫正確的資料。AD DS domain controllers must also have synchronized clocks to help to ensure accurate data replication.

Windows 時間服務係稱為 W32Time.dll 動態連結媒體櫃中。The Windows Time service is implemented in a dynamic link library called W32Time.dll. 在 [預設會安裝 W32Time.dll %Systemroot%\System32資料夾期間,作業系統設定和安裝。W32Time.dll is installed by default in the %Systemroot%\System32 folder during operating system setup and installation.

時鐘上同步處理的網路所需的 Kerberos V5 驗證通訊協定來原始 W32Time.dll 開發適用於 Windows 2000 Server 支援規格。W32Time.dll was originally developed for Windows 2000 Server to support a specification by the Kerberos V5 authentication protocol that required clocks on a network to be synchronized. 開始使用 Windows Server 2003,W32Time.dll 提供透過 Windows 2000 Server 作業系統的網路時鐘同步提高的正確性,此外,支援各種不同的硬體裝置和網路時間通訊協定的時間提供者使用。Starting with Windows Server 2003, W32Time.dll provided increased accuracy in network clock synchronization over the Windows 2000 Server operating system and, in addition, supported a variety of hardware devices and network time protocols by means of time providers. 雖然最初設計目的是提供時鐘同步處理的 F:kerberos 驗證,目前的許多應用程式使用時間戳記確保交易的一致性,錄製重要活動,以及其他關鍵性、即時資訊的時間。Although originally designed to provide clock synchronization for Kerberos authentication, many current applications use timestamps to ensure transactional consistency, to record the time of important events, and other business-critical, time-sensitive information. 這些應用程式可以從 Windows 時間服務提供的電腦之間同步處理時間。These applications benefit from time synchronization between computers that is provided by the Windows Time service.

時間通訊協定的重要性Importance of Time Protocols

時間通訊協定進行通訊交換時間資訊和使用這些資訊同步時鐘兩部電腦之間。Time protocols communicate between two computers to exchange time information and then use that information to synchronize their clocks. Windows 時間服務時間通訊協定,以 client 要求來自伺服器的時間資訊和同步時鐘依據收到的資訊。With the Windows Time service time protocol, a client requests time information from a server and synchronizes its clock based on the information that is received.

Windows 時間服務使用 NTP 可協助您在網路上同步處理時間。The Windows Time service uses NTP to help synchronize time across a network. NTP 是包含訓練演算法所需的同步時鐘網際網路時間通訊協定。NTP is an Internet time protocol that includes the discipline algorithms necessary for synchronizing clocks. NTP 是更加準確的時間通訊協定比簡單網路時間通訊協定 (SNTP) 用於某些版本的 Windows。不過,繼續支援,可讓電腦執行的時間 SNTP 為基礎的服務,例如 Windows 2000 的回溯相容性 SNTP W32Time。NTP is a more accurate time protocol than the Simple Network Time Protocol (SNTP) that is used in some versions of Windows; however, W32Time continues to support SNTP to enable backward compatibility with computers running SNTP-based time services such as Windows 2000.

也了See Also

Windows 時間服務的運作方式How the Windows Time Service Works
Windows 時間服務工具和設定Windows Time Service Tools and Settings
Microsoft 知識庫文章 902229Microsoft Knowledge Base article 902229
Windows 時間服務相關的影片Videos about the Windows Time Service