Windows 時間服務工具和設定Windows Time Service Tools and Settings

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

在本區段中In this section

注意

本主題包含工具與設定 Windows 時間服務 (W32Time) 的相關資訊。This topic contains information only about tools and settings for Windows Time service (W32Time). 如果您只想要同步處理時間加入網域的 client 的電腦,請查看設定為自動網域時間同步 client 電腦If you only want to synchronize time for a domain-joined client computer, see Configure a client computer for automatic domain time synchronization. 了解如何設定 Windows 時間服務的其他主題查看主題一節中的清單中的的位置找到 Windows 時間服務設定資訊,For additional topics about how to configure Windows Time service, see the list of topics in the section Where to Find Windows Time Service Configuration Information.

警告

您不應該使用 Net time 命令設定或設定 Windows 時間服務順利執行時的時間。You should not use the Net time command to configure or set time when the Windows Time service is running.

此外,在較舊的電腦可執行 Windows XP 或更早版本,命令網路時間 /querysntp 顯示名稱與電腦同步處理,設定,但 NTP 伺服器只適用於電腦的時間 client 設定為 NTP 或 AllSync 網路時間通訊協定 (NTP) 伺服器。Also, on older computers that run Windows XP or earlier, the command Net time /querysntp displays the name of a Network Time Protocol (NTP) server with which a computer is configured to synchronize, but that NTP server is used only when the computer's time client is configured as NTP or AllSync. 命令已因為取代。That command has since been deprecated.

大多數成員網域的電腦有 NT5DS,這表示同步處理時間從網域層的時間 client 類型。Most domain member computers have a time client type of NT5DS, which means that they synchronize time from the domain hierarchy. 這只有一般例外是網域控制站為的樹系根網域中,這通常設定為使用外部的時間來源同步處理時間主要網域控制站 (PDC) 模擬器操作主機功能。The only typical exception to this is the domain controller that functions as the primary domain controller (PDC) emulator operations master of the forest root domain, which is usually configured to synchronize time with an external time source. 若要檢視電腦的時間 client 設定,請執行 W32tm//query /configuration 從提升權限的命令提示字元中開始在 Windows Server 2008 和 Windows Vista、命令及朗讀輸入列中的命令的輸出。To view the time client configuration of a computer, run the W32tm /query /configuration command from an elevated Command Prompt in starting in Windows Server 2008, and Windows Vista, and read the Type line in the command output. 如需詳細資訊,請查看Windows 時間服務的運作方式(http://go.microsoft.com/fwlink/?LinkId=117753)。For more information, see How Windows Time Service Works (http://go.microsoft.com/fwlink/?LinkId=117753). 您可以執行命令reg 查詢 HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters及朗讀的值NtpServer中的命令的輸出。You can run the command reg query HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters and read the value of NtpServer in the command output.

重要

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 時間服務工具Windows Time Service Tools

下列工具會相關 Windows 時間服務使用。The following tools are associated with the Windows Time service.

W32tm.exe: Windows 時間W32tm.exe: Windows Time

明細Category

這項工具已安裝 Windows XP、Windows Vista、Windows 7、Windows Server 2003、Windows Server 2003 R2、Windows Server 2008 和 Windows Server 2008 R2 預設安裝的一部分。This tool is installed as part of Windows XP, Windows Vista, Windows 7 , Windows Server 2003, Windows Server 2003 R2, Windows Server 2008 , and Windows Server 2008 R2 default installations.

版本的相容性Version compatibility

這個工具適用於 Windows XP、Windows Vista、Windows 7、Windows Server 2003、Windows Server 2003 R2、Windows Server 2008 和 Windows Server 2008 R2 預設安裝。This tool works on Windows XP, Windows Vista, Windows 7 , Windows Server 2003, Windows Server 2003 R2, Windows Server 2008 , and Windows Server 2008 R2 default installations.

W32tm.exe 用於設定 Windows 時間服務設定。W32tm.exe is used to configure Windows Time service settings. 它也可以診斷問題時間服務使用。It can also be used to diagnose problems with the time service. W32tm.exe 是設定、監視或疑難排解 Windows 時間服務慣用的命令列工具。W32tm.exe is the preferred command line tool for configuring, monitoring, or troubleshooting the Windows Time service.

下表描述 W32tm.exe 搭配使用的參數。The following tables describe the parameters that are used with W32tm.exe.

W32tm.exe 主要參數W32tm.exe Primary Parameters

參數Parameter 描述Description
W32tm 日嗎?W32tm /? W32tm 命令列協助W32tm command line help
W32tm//registerW32tm /register 暫存器時間服務執行的服務,並新增登錄預設設定。Registers the time service to run as a service and adds default configuration to the registry.
W32tm//unregisterW32tm /unregister 移除註冊時間服務,並移除登錄所有設定的資訊。Unregisters the time service and removes all configuration information from the registry.
w32tm//monitorw32tm /monitor

[/domain:] [/computers:[,[,...]]][/Threads:][/domain:] [/computers:[,[,...]]] [/threads:]
網域-指定監視的網域。domain - specifies which domain to monitor. 如果給定不網域名稱,或指定網域都電腦選項,就會使用預設的網域。If no domain name is given, or neither the domain nor computers option is specified, the default domain is used. 此選項可能使用超過一次。This option might be used more than once.

電腦-監視給定的電腦清單。computers - monitors the given list of computers. 電腦名稱是以逗號分隔,不空間。Computer names are separated by commas, with no spaces. 如果名稱以使用 ' ',就會被視為 PDC。If a name is prefixed with a '', it is treated as a PDC. 此選項可能使用超過一次。This option might be used more than once.

執行緒-指定分析同時的電腦數目。threads - specifies the number of computers to analyze simultaneously. 預設值為 3。The default value is 3. 允許的範圍是 1-50。Allowed range is 1-50.
w32tm /nttew32tm /ntte 在轉換 NT 系統時間 (10 ^-7) 0 h 1-1 月 1601,可讀取的格式為秒的間隔。Convert an NT system time, in (10^-7)s intervals from 0h 1-Jan 1601, into a readable format.
w32tm /ntptew32tm /ntpte 在轉換 NTP 時間 (2 ^-32) 0 h 1-1 月 1900,可讀取的格式為秒的間隔。Convert an NTP time, in (2^-32)s intervals from 0h 1-Jan 1900, into a readable format.
w32tm//resyncw32tm /resync

[/computer:][/computer:]

[/nowait][/nowait]

[/Rediscover][/rediscover]

[/Soft][/soft]
它應該時鐘、儘快丟棄所有累積的錯誤統計資料同步處理告訴電腦。Tells a computer that it should resynchronize its clock as soon as possible, throwing out all accumulated error statistics.

電腦: -指定應該同步處理的電腦。computer: - Specifies the computer that should resynchronize. 如果您不指定,將會同步處理本機電腦。If not specified, the local computer will resynchronize.

[不等待-不等待重新同步化發生。立即退款。nowait - do not wait for the resynchronize to occur; return immediately. 否則,請等候重新同步化傳回之前完成。Otherwise, wait for the resynchronize to complete before returning.

重新尋找-偵測網路設定與重新尋找網路來源,然後重新同步處理。rediscover - Redetect the network configuration and rediscover network sources, then resynchronize.

軟-同步使用現有錯誤的統計資料。soft - resynchronize using existing error statistics. 不實用、提供相容性。Not useful, provided for compatibility.
w32tm /stripchartw32tm /stripchart

/computer:/computer:

[/Period:][/period:]

[/dataonly][/dataonly]

[/Samples:][/samples:]

[/rdtsc][/rdtsc]
顯示在此電腦與另一部電腦之間時差。Display a strip chart of the offset between this computer and another computer.

電腦: -測量時差針對電腦。computer: - the computer to measure the offset against.

時間: -範例,以秒之間的時間。period: - the time between samples, in seconds. 預設為 2 秒。The default is 2s.

dataonly-顯示圖形的資料。dataonly - display only the data without graphics.

範例: -收集範例,然後停止。samples: - collect samples, then stop. 如果未指定,會收集範例直到Ctrl + C按下按鍵。If not specified, samples will be collected until Ctrl+C is pressed.

rdtsc:範例中,這個選項會列印加上標題 RdtscStart,以逗號分隔值 RdtscEnd,FileTime、RoundtripDelay,而不是文字圖形 NtpOffset。rdtsc: for each sample, this option prints comma separated values along with the headers RdtscStart, RdtscEnd, FileTime, RoundtripDelay, NtpOffset instead of the text graphic.
  • RdtscStart – RDTSC(讀取戳記計數器)產生 NTP 要求之前,所收集的值。RdtscStart – RDTSC (Read TimeStamp Counter) value collected just before the NTP request was generated.
  • RdtscEnd – RDTSC(讀取戳記計數器)值收集只之後 NTP 回應已收到及處理。RdtscEnd – RDTSC (Read TimeStamp Counter) value collected just after the NTP response was received and processed.
  • FileTime – 用於 NTP 要求本機 FILETIME 值。FileTime – Local FILETIME value used in the NTP request.
  • RoundtripDelay – 時間經過秒之間產生 NTP 要求和處理收到的 NTP 回應,根據 NTP 往返計算計算。RoundtripDelay – Time elapsed in seconds between generating the NTP request and processing the received NTP response, computed as per NTP roundtrip computations.
  • NTPOffset – 時間在本機電腦之間 NTP 伺服器,秒位移計算根據 NTP 位移運算。NTPOffset – Time offset in seconds between the local machine and the NTP server, computed as per NTP offset computations.
w32tm /configw32tm /config

[/computer:][/computer:]

[/Update][/update]

[/manualpeerlist:][/manualpeerlist:]

[/syncfromflags:][/syncfromflags:]

[/LocalClockDispersion:][/LocalClockDispersion:]

[/Reliable:(是和 #124; 無)][/reliable:(YES|NO)]

[/largephaseoffset:][/largephaseoffset:]
電腦: -調整設定的computer: - adjusts the configuration of . 如果您不指定,預設值是本機電腦。If not specified, the default is the local computer.

更新-通知時間服務設定已變更,導致,變更才會生效。update - notifies the time service that the configuration has changed, causing the changes to take effect.

manualpeerlist: -設定手動對等清單,即空格分隔 DNS 和/或 IP 位址的清單。manualpeerlist: - sets the manual peer list to , which is a space-delimited list of DNS and/or IP addresses. 指定時多個對等,必須使用此選項住報價。When specifying multiple peers, this option must be enclosed in quotes.

syncfromflags: -NTP client 應該同步哪些來源的設定。syncfromflags: - sets what sources the NTP client should synchronize from. 應該是以逗號分隔的清單這些關鍵字(不區分大小寫):should be a comma separated list of these keywords (not case sensitive):

手動-包含同儕手動對等清單。MANUAL - include peers from the manual peer list.

DOMHIER-同步網域階層網域控制站 (DC)。DOMHIER - synchronize from a domain controller (DC) in the domain hierarchy.

LocalClockDispersion: -設定內部的正確性時鐘假設 W32Time 會當機的時間不能取得已設定來源。LocalClockDispersion: - configures the accuracy of the internal clock that W32Time will assume when it can't acquire time from its configured sources.

為了: (是和 #124; 無)-設定此電腦是否可靠的時間來源。reliable:(YES|NO) - set whether this computer is a reliable time source.

只有有意義的網域控制站在這個設定。This setting is only meaningful on domain controllers.

-這台電腦是可靠的時間服務。YES - this computer is a reliable time service.

不需要-這部電腦不可靠的時間服務。NO - this computer is not a reliable time service.

largephaseoffset: -設定本機之間的時差及網路 W32Time 會考慮增量的時間。largephaseoffset: - sets the time difference between local and network time which W32Time will consider a spike.
w32tm /tzw32tm /tz 顯示目前的時區設定。Display the current time zone settings.
w32tm /dumpregw32tm /dumpreg

[/Subkey:][/subkey:]

[/computer:][/computer:]
顯示特定的登錄相關聯的值。Display the values associated with a given registry key.

預設金鑰是 HKLM\System\CurrentControlSet\Services\W32TimeThe default key is HKLM\System\CurrentControlSet\Services\W32Time

(根金鑰時間服務)。(the root key for the time service).

子: -顯示子相關聯的值的預設金鑰。subkey: - displays the values associated with subkey of the default key.

電腦: -查詢登錄設定電腦computer: - queries registry settings for computer
w32tm//query [/computer:] {/source 與 #124;/configuration 和 #124;/Peers 與 #124;/status} [/verbose]w32tm /query [/computer:] {/source | /configuration | /peers | /status} [/verbose] 此參數是第一次進行提供 Windows 時間 client 版本的 Windows Vista 和 Windows Server 2008。This parameter was first made available in the Windows Time client versions of Windows Vista, and Windows Server 2008 .

顯示電腦的 Windows 時間服務的資訊。Display a computer's Windows Time service information.

電腦: -查詢資訊的computer: - Query the information of . 如果您不指定,預設值是本機電腦。If not specified, the default value is the local computer.

來源-顯示的時間來源。Source - Display the time source.

設定-顯示的 [執行的階段和位置設定來自設定。Configuration - Display the configuration of run time and where the setting comes from. 在 [詳細資訊模式,會顯示定義或未使用設定太。In verbose mode, display the undefined or unused setting too.

同儕-顯示等其狀態的清單。peers - Display a list of peers and their status.

狀態-顯示 Windows 時間服務狀態。status - Display Windows Time service status.

詳細資訊-設定的詳細資訊模式來顯示更多的資訊。verbose - Set the verbose mode to display more information.
w32tm//debug {/disable 與 #124;{/Enable /file: /size: /entries: [/truncate]}}w32tm /debug {/disable | {/enable /file: /size: /entries: [/truncate]}} 此參數是第一次進行提供 Windows 時間 client 版本的 Windows Vista 和 Windows Server 2008。This parameter was first made available in the Windows Time client versions of Windows Vista, and Windows Server 2008 .

讓或停用 Windows 時間服務私人登入本機電腦。Enable or disable the local computer Windows Time service private log.

停用-停用私人登入。disable - Disable the private log.

-讓私人登入。enable - Enable the private log.

- 檔案: -指定絕對檔案名稱。- file: - Specify the absolute file name.
- 大小: -指定循環登入的大小上限。- size: - Specify the maximum size for circular logging.
- 項目: -包含旗標指定號碼,以逗號分隔指定應該登入資訊的類型的清單。- entries: - Contains a list of flags, specified by number and separated by commas, that specify the types of information that should be logged. 若要 300 0 的有效的數字。Valid numbers are 0 to 300. 數字範圍無效,除了一個數字 0-100,103,例如 106。A range of numbers is valid, in addition to single numbers, such as 0-100,103,106. 0-300 值是登入的所有資訊。Value 0-300 is for logging all information.

截斷-如果有的話截斷檔案。truncate - Truncate the file if it exists.

如需有關W32tm.exe,查看協助及 Windows XP、Windows Vista、Windows 7、Windows Server 2003、Windows Server 2003 R2、Windows Server 2008 和 Windows Server 2008 R2 的支援中心。For more information about W32tm.exe, see Help and Support Center in Windows XP, Windows Vista, Windows 7 , Windows Server 2003, Windows Server 2003 R2, Windows Server 2008 , and Windows Server 2008 R2.

Windows 時間服務登錄項目Windows Time Service Registry Entries

Windows 時間服務下列登錄無關。The following registry entries are associated with the Windows Time service.

使用疑難排解或驗證需要的設定的套用做為參考提供這項資訊。This information is provided as a reference for use in troubleshooting or verifying that the required settings are applied. 建議您不要不直接編輯登錄除非另有其他的替代方案。It is recommended that you do not directly edit the registry unless there is no other alternative. 變更登錄無法驗證再套用,如此一來,不正確的值可以儲存或 windows 作業系統。Modifications to the registry are not validated by the registry editor or by Windows before they are applied, and as a result, incorrect values can be stored. 這可能導致處於無法復原錯誤,系統中。This can result in unrecoverable errors in the system.

可能的話,請使用群組原則」或其他 Windows 工具,例如 Microsoft Management Console (MMC),以完成任務,而非編輯登錄直接。When possible, use Group Policy or other Windows tools, such as Microsoft Management Console (MMC), to accomplish tasks rather than editing the registry directly. 如果您必須編輯登錄,小心謹慎。If you must edit the registry, use extreme caution.

警告

部分的群組原則物件 (GPO) 設定的不同對應的預設登錄項目中的系統管理範本檔案 (System.adm) 設定預設值。Some of the preset values that are configured in the System Administrative template file (System.adm) for the Group Policy object (GPO) settings are different from the corresponding default registry entries. 如果您打算使用 GPO 任何 Windows 時間設定,請務必檢視的Windows 時間服務群組原則設定預設值是不同的對應 Windows 時間服務登錄的項目在 Windows Server 2003 (http://go.microsoft.com/fwlink/?LinkId=186066)。If you plan to use a GPO to configure any Windows Time setting, be sure that you review Preset values for the Windows Time service Group Policy settings are different from the corresponding Windows Time service registry entries in Windows Server 2003 (http://go.microsoft.com/fwlink/?LinkId=186066). 這個問題,適用於 Windows Server 2008 R2、Windows Server 2008、Windows Server 2003 R2 和 Windows Server 2003。This issue applies to Windows Server 2008 R2 , Windows Server 2008 , Windows Server 2003 R2, and Windows Server 2003.

Windows 時間服務許多登錄的群組原則設定具有相同名稱的相同。Many registry entries for the Windows Time service are the same as the Group Policy setting of the same name. 群組原則設定對應至登錄位在相同名稱的項目:The Group Policy settings correspond to the registry entries of the same name located in:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\

這個登錄位置,有數個登錄按鍵。There are several registry keys at this registry location. Windows 時間設定儲存所有的這些按鍵在值:The Windows Time settings are stored in values across all of these keys:

注意

許多登錄 W32Time 一節中值用來 W32Time 來儲存資訊。Many of the values in the W32Time section of the registry are used internally by W32Time to store information. 在任何時候應該不會手動變更下列值。These values should not be manually changed at any time. 請勿修改本節中的設定,除非您熟悉的設定,並的特定新的值,將會如預期般運作。Do not modify any of the settings in this section unless you are familiar with the setting and are certain that the new value will work as expected. 在位於登錄下列項目:The following registry entries are located under:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\

參數一部分會儲存在時鐘刻度登錄中,某些位於秒。Some of the parameters are stored in clock ticks in the registry and some are in seconds. 從時鐘刻度轉秒鐘的時間:To convert the time from clock ticks to seconds:

  • 1 分鐘 = 60 秒1 minute = 60 sec

  • 1 秒 = 1000 ms1 sec = 1000 ms

  • 1 ms 所述,= 10000 時鐘刻度在 Windows 系統中,DateTime.Ticks 屬性1 ms = 10,000 clock ticks on a Windows system, as described at DateTime.Ticks Property.

例如,5 分鐘就會成為 5 * 60\ * 1000\ * 10000 = 3000000000 時鐘刻度。For example, 5 minutes would become 5*60*1000*10000 = 3000000000 clock ticks.

所有版本都包含 Windows 7、Windows 8、Windows 10、Windows Server 2008 和 Windows Server 2008 R2、Windows Server 2012、Windows Server 2012R2、Windows Server 2016。All versions include Windows 7, Windows 8, Windows 10, Windows Server 2008 , and Windows Server 2008 R2, Windows Server 2012, Windows Server 2012R2, Windows Server 2016. 只有較新的 Windows 版本提供了一些項目。Some entries are only availalbe on newer Windows versions.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\ParametersHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

登錄項目Registry Entry 版本Version 描述Description
AllowNonstandardModeCombinationsAllowNonstandardModeCombinations 所有All 此項目指示標準模式組合,允許對等裝置之間同步處理中。This entry indicates that non-standard mode combinations are allowed in synchronization between peers. 網域成員的預設值為 1。The default value for domain members is 1. 獨立戶端與伺服器的預設值為 1。The default value for stand-alone clients and servers is 1.
NtpServerNtpServer 所有All 此項目指定空格分隔對等裝置清單從的電腦取得戳記時間,包含一或多個 DNS 名稱或一行的 IP 位址。This entry specifies a space-delimited list of peers from which a computer obtains time stamps, consisting of one or more DNS names or IP addresses per line. 必須唯一每個 DNS 名稱或列出的 IP 位址。Each DNS name or IP address listed must be unique. 連接到網域的電腦必須更可靠的時間來源,例如官方美國時間時鐘與同步處理。Computers connected to a domain must synchronize with a more reliable time source, such as the official U.S. time clock.
還有網域成員此登錄項目的不預設值。There is no default value for this registry entry on domain members. 獨立戶端伺服器上的預設值是 time.windows.com,0x1。The default value on stand-alone clients and servers is time.windows.com,0x1.

注意:的可用 NTP 伺服器的詳細資訊,請查看Microsoft 知識庫文章 262680-在網際網路有簡單網路時間通訊協定 (SNTP) 時間伺服器的清單Note: For more information on available NTP Servers, see Microsoft Knowledge Base article 262680 - A list of the Simple Network Time Protocol (SNTP) time servers that are available on the Internet
ServiceDllServiceDll 所有All 此項目是由 W32Time 維護。This entry is maintained by W32Time. 它包含保留的資料所使用的 Windows 作業系統,這項設定的任何變更都可能造成無法預期的結果。It contains reserved data that is used by the Windows operating system, and any changes to this setting can cause unpredictable results. 這個 DLL 網域成員並獨立戶端和伺服器上的預設位置為 %windir%\system32\w32time.dll。The default location for this DLL on both domain members and stand-alone clients and servers is %windir%\System32\W32Time.dll.
ServiceMainServiceMain 所有All 此項目是由 W32Time 維護。This entry is maintained by W32Time. 它包含保留的資料所使用的 Windows 作業系統,這項設定的任何變更都可能造成無法預期的結果。It contains reserved data that is used by the Windows operating system, and any changes to this setting can cause unpredictable results. 網域成員預設值為 SvchostEntry_W32Time。The default value on domain members is SvchostEntry_W32Time. 獨立戶端伺服器上的預設值是 SvchostEntry_W32Time。The default value on stand-alone clients and servers is SvchostEntry_W32Time. ""
輸入Type 所有All 表示對等接受從同步處理的此項目:This entry Indicates which peers to accept synchronization from:
  • 非同步NoSync. 其他來源的時間服務不會同步。The time service does not synchronize with other sources.
  • NTP。NTP. 從中指定的伺服器的時間服務會同步處理NtpServerThe time service synchronizes from the servers specified in the NtpServer. 登錄項目。registry entry.
  • NT5DSNT5DS. 時間服務會從網域層同步處理。The time service synchronizes from the domain hierarchy.
  • AllSyncAllSync. 時間服務使用的所有可用的同步處理機制。The time service uses all the available synchronization mechanisms.
網域成員預設值是NT5DSThe default value on domain members is NT5DS. 獨立戶端伺服器上的預設值是NTPThe default value on stand-alone clients and servers is NTP.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\ConfigHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config

登錄項目Registry Entry 版本Version 描述Description
AnnounceFlagsAnnounceFlags 所有All 此項目可控制是否這台電腦標示為可靠的時間伺服器。This entry controls whether this computer is marked as a reliable time server. 除非它也會標示為時間伺服器的電腦不標示為可靠。A computer is not marked as reliable unless it is also marked as a time server.
-0x00 時間伺服器- 0x00 Not a time server
-0x01 一律時間伺服器- 0x01 Always time server
-0x02 自動時間伺服器- 0x02 Automatic time server
-0x04 一律可靠的時間伺服器- 0x04 Always reliable time server
-0x08 自動可靠的時間伺服器- 0x08 Automatic reliable time server
網域成員的預設值為 10。The default value for domain members is 10. 獨立戶端與伺服器的預設值為 10。The default value for stand-alone clients and servers is 10.
EventLogFlagsEventLogFlags 所有All 此項目控制登時間服務的活動。This entry controls the events that the time service logs.
-時間捷徑:0x1- Time Jump: 0x1
-來源變更:0x2- Source Change: 0x2
網域成員的預設值為 2。The default value on domain members is 2. 獨立戶端伺服器上的預設值為 2。The default value on stand-alone clients and servers is 2.
FrequencyCorrectRateFrequencyCorrectRate 所有All 此項目控制校正時鐘後的速度。This entry controls the rate at which the clock is corrected. 如果此值太小,時鐘變得不穩定和 overcorrects。If this value is too small, the clock is unstable and overcorrects. 如果值太大,時鐘需要很長的時間來同步處理。If the value is too large, the clock takes a long time to synchronize. 網域成員的預設值為 4。The default value on domain members is 4. 獨立戶端伺服器上的預設值為 4。The default value on stand-alone clients and servers is 4.

請注意,0 不正確的值為 FrequencyCorrectRate 登錄項目。Note that 0 is an invalid value for the FrequencyCorrectRate registry entry. Windows Server 2003、Windows Server 2003 R2、Windows Server 2008 和 Windows Server 2008 R2 電腦上,如果值設定為 0 Windows 時間服務會自動變更為 1。On Windows Server 2003, Windows Server 2003 R2, Windows Server 2008 , and Windows Server 2008 R2 computers, if the value is set to 0 the Windows Time service will automatically change it to 1.
HoldPeriodHoldPeriod 所有All 此項目控制一段時間的增量偵測已停用,以快速讓同步處理本機電腦時鐘。This entry controls the period of time for which spike detection is disabled in order to bring the local clock into synchronization quickly. 增量,而且時間範例指出當時超出數秒鐘,通常收到之後已一致傳回對的時機範例。A spike is a time sample indicating that time is off a number of seconds, and is usually received after good time samples have been returned consistently. 網域成員的預設值為 5。The default value on domain members is 5. 獨立戶端伺服器上的預設值為 5。The default value on stand-alone clients and servers is 5.
LargePhaseOffsetLargePhaseOffset 所有All 此項目指定時間位移大於或這個 10 中的值為-7秒被視為突然增加。This entry specifies that a time offset greater than or equal to this value in 10-7 seconds is considered a spike. 網路流量大量例如干擾可能會造成突然增加。A network disruption such as a large amount of traffic might cause a spike. 除非長一段時間持續發生,將會忽略突然增加。A spike will be ignored unless it persists for a long period of time. 網域成員預設值為 50000000。The default value on domain members is 50000000. 獨立戶端伺服器上的預設值是 50000000。The default value on stand-alone clients and servers is 50000000.
LastClockRateLastClockRate 所有All 此項目是由 W32Time 維護。This entry is maintained by W32Time. 它包含保留的資料所使用的 Windows 作業系統,這項設定的任何變更都可能造成無法預期的結果。It contains reserved data that is used by the Windows operating system, and any changes to this setting can cause unpredictable results. 網域成員預設值為 156250。The default value on domain members is 156250. 獨立戶端伺服器上的預設值是 156250。The default value on stand-alone clients and servers is 156250.
LocalClockDispersionLocalClockDispersion 所有All 此項目控制起始(以秒計),您必須假設時,才來源是建 CMOS 時鐘。This entry controls the dispersion (in seconds) that you must assume when the only time source is the built-in CMOS clock. 網域成員預設值為 10。The default value on domain members is 10. 獨立戶端伺服器上的預設值為 10。The default value on stand-alone clients and servers is 10.
MaxAllowedPhaseOffsetMaxAllowedPhaseOffset 所有All 此項目指定 W32Time 嘗試使用時鐘速率調整電腦時鐘最大時差(以秒計)。This entry specifies the maximum offset (in seconds) for which W32Time attempts to adjust the computer clock by using the clock rate. 當時差超過速率這個時,W32Time 設定電腦時鐘直接。When the offset exceeds this rate, W32Time sets the computer clock directly. 網域成員的預設值為 300。The default value for domain members is 300. 獨立戶端與伺服器的預設值為 1。The default value for stand-alone clients and servers is 1. 如需詳細資訊查看下列See below for more information.
MaxClockRateMaxClockRate 所有All 此項目是由 W32Time 維護。This entry is maintained by W32Time. 它包含保留的資料所使用的 Windows 作業系統,這項設定的任何變更都可能造成無法預期的結果。It contains reserved data that is used by the Windows operating system, and any changes to this setting can cause unpredictable results. 網域成員預設值為 155860。The default value for domain members is 155860. 獨立戶端與伺服器的預設值是 155860。The default value for stand-alone clients and servers is 155860.
MaxNegPhaseCorrectionMaxNegPhaseCorrection 所有All 此項目秒服務所做出中指定的最大負時間修正。This entry specifies the largest negative time correction in seconds that the service makes. 如果服務,不需要變更更長的時間,它登事件改為。If the service determines that a change larger than this is required, it logs an event instead. 特殊案例:0xFFFFFFFF 表示一定要進行修正時間。Special case: 0xFFFFFFFF means always make time correction. 網域成員預設值為 0xFFFFFFFF。The default value for domain members is 0xFFFFFFFF. 獨立戶端與伺服器的預設值為 54000 (15 小時)。The default value for stand-alone clients and servers is 54,000 (15 hrs).
MaxPollIntervalMaxPollInterval 所有All 此項目指定最大的時間間隔,log2 秒允許系統輪詢間隔。This entry specifies the largest interval, in log2 seconds, allowed for the system polling interval. 請注意,雖然系統必須輪詢依據排定的時間間隔,提供者可以拒絕製作範例,若要這樣做需要時才。Note that while a system must poll according to the scheduled interval, a provider can refuse to produce samples when requested to do so. 網域控制站的預設值為 10。The default value for domain controllers is 10. 網域成員的預設值為 15。The default value for domain members is 15. 獨立戶端與伺服器的預設值為 15。The default value for stand-alone clients and servers is 15.
MaxPosPhaseCorrectionMaxPosPhaseCorrection 所有All 此項目秒服務所做出中指定的最大正時間修正。This entry specifies the largest positive time correction in seconds that the service makes. 如果服務,不需要變更更長的時間,它登事件改為。If the service determines that a change larger than this is required, it logs an event instead. 特殊案例:0xFFFFFFFF 表示一定要進行修正時間。Special case: 0xFFFFFFFF means always make time correction. 網域成員預設值為 0xFFFFFFFF。The default value for domain members is 0xFFFFFFFF. 獨立戶端與伺服器的預設值為 54000 (15 小時)。The default value for stand-alone clients and servers is 54,000 (15 hrs).
MinClockRateMinClockRate 所有All 此項目是由 W32Time 維護。This entry is maintained by W32Time. 它包含保留的資料所使用的 Windows 作業系統,這項設定的任何變更都可能造成無法預期的結果。It contains reserved data that is used by the Windows operating system, and any changes to this setting can cause unpredictable results. 網域成員預設值為 155860。The default value for domain members is 155860. 獨立戶端與伺服器的預設值是 155860。The default value for stand-alone clients and servers is 155860.
MinPollIntervalMinPollInterval 所有All 此項目指定最小的間隔 log2 秒鐘,以允許系統輪詢間隔。This entry specifies the smallest interval, in log2 seconds, allowed for the system polling interval. 請注意,雖然系統不會超過此要求範例,提供者可以產生範例時候以外排定的時間間隔。Note that while a system does not request samples more frequently than this, a provider can produce samples at times other than the scheduled interval. 網域控制站的預設值為 6。The default value for domain controllers is 6. 網域成員的預設值為 10。The default value for domain members is 10. 獨立戶端與伺服器的預設值為 10。The default value for stand-alone clients and servers is 10.
PhaseCorrectRatePhaseCorrectRate 所有All 此項目控制階段錯誤修正的速度。This entry controls the rate at which the phase error is corrected. 指定小值能修正形同階段錯誤快速,但可能會造成時鐘變得不穩定。Specifying a small value corrects the phase error quickly, but might cause the clock to become unstable. 如果值太大,花費較長的時間來更正錯誤階段。If the value is too large, it takes a longer time to correct the phase error.

網域成員預設值為 1。The default value on domain members is 1. 獨立戶端伺服器上的預設值為 7。The default value on stand-alone clients and servers is 7.

注意:0 會是無效的值為 PhaseCorrectRate 登錄項目。Note: 0 is an invalid value for the PhaseCorrectRate registry entry. Windows Server 2003、Windows Server 2003 R2、Windows Server 2008 和 Windows Server 2008 R2 電腦上,如果值設定為 0,Windows 時間服務會自動變更其 1。On Windows Server 2003, Windows Server 2003 R2, Windows Server 2008 , and Windows Server 2008 R2 computers, if the value is set to 0, the Windows Time service automatically changes it to 1.
PollAdjustFactorPollAdjustFactor 所有All 此項目控制判斷来增加或減少系統輪詢間隔。This entry controls the decision to increase or decrease the poll interval for the system. 較大的值,少量錯誤,會導致將會減少輪詢間隔。The larger the value, the smaller the amount of error that causes the poll interval to be decreased. 網域成員的預設值為 5。The default value on domain members is 5. 獨立戶端伺服器上的預設值為 5。The default value on stand-alone clients and servers is 5.
SpikeWatchPeriodSpikeWatchPeriod 所有All 此項目指定的時間,必須保存的可疑時差之前接受為正確(以秒計)。This entry specifies the amount of time that a suspicious offset must persist before it is accepted as correct (in seconds). 網域成員的預設值為 900。The default value on domain members is 900. 獨立戶端和工作站預設值為 900。The default value on stand-alone clients and workstations is 900.
TimeJumpAuditOffsetTimeJumpAuditOffset 所有All 簽署指出整數時間捷徑稽核臨界值,以秒。An unsigned integer that indicates the time jump audit threshold, in seconds. 如果時間服務以直接設定時鐘調整本機時鐘與的時間修正大於這個值,然後時間服務登稽核約會。If the time service adjusts the local clock by setting the clock directly, and the time correction is more than this value, then the time service logs an audit event.
UpdateIntervalUpdateInterval 所有All 此項目指定時鐘刻度階段修正調整之間的數字。This entry specifies the number of clock ticks between phase correction adjustments. 網域控制站的預設值為 100。The default value for domain controllers is 100. 網域成員的預設值為 30000。The default value for domain members is 30,000. 獨立戶端與伺服器的預設值是 360,000。The default value for stand-alone clients and servers is 360,000.

注意:零會是無效的值為 UpdateInterval 登錄項目。NOTE: Zero is an invalid value for the UpdateInterval registry entry. 在電腦上執行 Windows Server 2003、Windows Server 2003 R2、Windows Server 2008 和 Windows Server 2008 R2,如果值設定為 0 Windows 時間服務會自動變更其 1。On computers running Windows Server 2003, Windows Server 2003 R2, Windows Server 2008 , and Windows Server 2008 R2 , if the value is set to 0 the Windows Time service automatically changes it to 1.

下列三種登錄並非 W32Time 預設設定,但新增登錄才能取得提升登入功能。The following three registry entries are not a part of the W32Time default configuration but can be added to the registry to obtain increased logging capabilities. 藉由變更 EventLogFlags 設定群組原則物件編輯器] 中的值可以修改系統事件登入來登入資訊。The information logged to the System Event log can be modified by changing value for the EventLogFlags setting in the Group Policy Object Editor. 根據預設,時間服務登入事件檢視器中每次建立它切換到新的時間來源。By default, the time service creates a log in Event Viewer every time that it switches to a new time source.

警告:預設值的群組原則物件 (GPO) 設定的不同適當的對應的設定中的系統管理範本檔案 (System.adm) 部分預設登錄項目。WARNING: Some of the preset values that are configured in the System Administrative template file (System.adm) for the Group Policy object (GPO) settings are different from the corresponding default registry entries. 如果您打算使用 GPO 任何 Windows 時間設定,請務必檢視的Windows 時間服務群組原則設定預設值是不同的對應 Windows 時間服務登錄的項目在 Windows Server 2003If you plan to use a GPO to configure any Windows Time setting, be sure that you review Preset values for the Windows Time service Group Policy settings are different from the corresponding Windows Time service registry entries in Windows Server 2003. 這個問題,適用於 Windows Server 2008 R2、Windows Server 2008、Windows Server 2003 R2 和 Windows Server 2003。This issue applies to Windows Server 2008 R2, Windows Server 2008, Windows Server 2003 R2, and Windows Server 2003.
UtilizeSslTimeDataUtilizeSslTimeData 張貼 Windows 10 組建 1511Post Windows 10 build 1511 1 的項目表示 W32Time 將會使用多個 SSL 時間戳記到植時鐘大致不正確的。Entry of 1 indicates that the W32Time will use multiple SSL timestamps to Seed a clock that is grossly inaccurate.

為了讓 W32Time 登入,必須先加入登錄下列項目:The following registry entries must be added in order to enable W32Time logging:

登錄項目Registry Entry 版本Version 描述Description
FileLogEntriesFileLogEntries 所有All 此項目控制量建立 Windows 次登入檔案中的項目。This entry controls the amount of entries created in the Windows Time log file. 預設值是不,這不登任何 Windows 階段的活動。The default value is none, which does not log any Windows Time activity. 有效值 0 到 300。Valid values are 0 to 300. 這個值不會影響事件登入的項目通常會由 Windows 時間This value does not affect the event log entries normally created by Windows Time
FileLogNameFileLogName 所有All 此項目控制位置和檔案名稱 Windows 次登入。This entry controls the location and file name of the Windows Time log. 預設值為空白,以及應該不會變更除非FileLogEntries變更。The default value is blank, and should not be changed unless FileLogEntries is changed. 有效的值為完整路徑和檔案名稱 Windows 的時間用來建立檔案登入。A valid value is a full path and file name that Windows Time will use to create the log file. 這個值不會影響事件登入的項目通常會由 Windows 的時間。This value does not affect the event log entries normally created by Windows Time.
FileLogSizeFileLogSize 所有All 此項目控制循環登入 Windows 階段登入檔案的行為。This entry controls the circular logging behavior of Windows Time log files. FileLogEntriesFileLogName所定義,此項目大小中, 定義位元組,以允許登入檔案,以到達之前,請先使用新的項目覆寫舊登入的項目。When FileLogEntries and FileLogName are defined, this entry defines the size, in bytes, to allow the log file to reach before overwriting the oldest log entries with new entries. 任意正有效,且 3000000 建議。Any positive number is valid, and 3000000 is recommended. 這個值不會影響事件登入的項目通常會由 Windows 的時間。This value does not affect the event log entries normally created by Windows Time.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClientHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient

登錄項目Registry Entry 版本Version 描述Description
AllowNonstandardModeCombinationsAllowNonstandardModeCombinations 所有All 此項目指示標準模式組合,允許對等裝置之間同步處理中。This entry indicates that non-standard mode combinations are allowed in synchronization between peers. 網域成員的預設值為 1。The default value for domain members is 1. 獨立戶端與伺服器的預設值為 1。The default value for stand-alone clients and servers is 1.
CompatibilityFlagsCompatibilityFlags 所有All 此項目指定下列相容性旗標和值:This entry specifies the following compatibility flags and values:

-DispersionInvalid: 0x00000001- DispersionInvalid: 0x00000001
-IgnoreFutureRefTimeStamp: 0x00000002- IgnoreFutureRefTimeStamp: 0x00000002
-AutodetectWin2K: 0x80000000- AutodetectWin2K: 0x80000000
-AutodetectWin2KStage2: 0x40000000- AutodetectWin2KStage2: 0x40000000

網域成員預設值為 0x80000000。The default value for domain members is 0x80000000. 獨立戶端與伺服器的預設值是 0x80000000。The default value for stand-alone clients and servers is 0x80000000.
CrossSiteSyncFlagsCrossSiteSyncFlags 所有All 此項目判斷是否服務選擇同步夥伴以外的網域的電腦。This entry determines whether the service chooses synchronization partners outside the domain of the computer. 值與選項︰The options and values are:

-無:0- None: 0
-PdcOnly: 1- PdcOnly: 1
-所有:2- All: 2

如果未設定 NT5DS 值,忽略此值。This value is ignored if the NT5DS value is not set. 網域成員的預設值為 2。The default value for domain members is 2. 獨立戶端與伺服器的預設值為 2。The default value for stand-alone clients and servers is 2.
DllNameDllName 所有All 此項目指定的時間提供 DLL 的位置。This entry specifies the location of the DLL for the time provider.

這個 DLL 網域成員並獨立戶端和伺服器上的預設位置為 %windir%\system32\w32time.dll。The default location for this DLL on both domain members and stand-alone clients and servers is %windir%\System32\W32Time.dll.
支援Enabled 所有All 此項目會指出是否尚未在目前的時間服務 NtpClient 提供者。This entry indicates if the NtpClient provider is enabled in the current Time Service.
  • 1 [是]Yes 1
  • 無 0No 0
網域成員預設值為 1。The default value on domain members is 1. 獨立戶端伺服器上的預設值為 1。The default value on stand-alone clients and servers is 1.
EventLogFlagsEventLogFlags 所有All 此項目指定登入 Windows 時間服務的活動。This entry specifies the events logged by the Windows Time service.
  • 0x1 性變更0x1 reachability changes
  • 0x2 大型範例傾斜(這是適用於 Windows Server 2003、Windows Server 2003 R2、Windows Server 2008 和 Windows Server 2008 R2 只)0x2 large sample skew (This is applicable to Windows Server 2003, Windows Server 2003 R2, Windows Server 2008 , and Windows Server 2008 R2 only)
網域成員預設值為 0x1。The default value on domain members is 0x1. 獨立戶端伺服器上的預設值是 0x1。The default value on stand-alone clients and servers is 0x1.
InputProviderInputProvider 所有All 此項目會指出是否支援 NtpClient 提供者。This entry indicates if the NtpClient provider is enabled.
  • 1 [是]Yes 1
  • 無 0No 0
網域成員預設值為 1。The default value on domain members is 1. 獨立戶端伺服器上的預設值為 1。The default value on stand-alone clients and servers is 1.
LargeSampleSkewLargeSampleSkew 所有All 此項目指定大型範例傾斜來登入秒。This entry specifies the large sample skew for logging in seconds. 為遵守用規格安全性和 Exchange 委員會(秒),這應會設定以三秒鐘。To comply with Security and Exchange Commission (SEC) specifications, this should be set to three seconds. 事件將會登入此設定只 EventLogFlags 明確設定 0x2 大型範例傾斜時。Events will be logged for this setting only when EventLogFlags is explicitly configured for 0x2 large sample skew. 網域成員的預設值為 3。The default value on domain members is 3. 獨立戶端伺服器上的預設值為 3。The default value on stand-alone clients and servers is 3.
ResolvePeerBackOffMaxTimesResolvePeerBackOffMaxTimes 所有All 此項目指定的時間按兩下時重複的等候時間間隔上限嘗試找出等與無法同步。This entry specifies the maximum number of times to double the wait interval when repeated attempts to locate a peer to synchronize with fail. 為零表示的等候時間間隔都最小值。A value of zero means that the wait interval is always the minimum. 網域成員的預設值為 7。The default value on domain members is 7. 獨立戶端伺服器上的預設值為 7。The default value on stand-alone clients and servers is 7.
ResolvePeerBackoffMinutesResolvePeerBackoffMinutes 所有All 此項目指定等待,分鐘,再嘗試找出等同步處理的初始間隔。This entry specifies the initial interval to wait, in minutes, before attempting to locate a peer to synchronize with. 網域成員預設值為 15。The default value on domain members is 15. 獨立戶端伺服器上的預設值為 15。The default value on stand-alone clients and servers is 15.
SpecialPollIntervalSpecialPollInterval 所有All 此項目指定特殊輪詢間隔(秒)手動對等裝置。This entry specifies the special poll interval in seconds for manual peers. 支援的 SpecialInterval 0x1 旗標是,當 W32Time 使用作業系統判斷而不是輪詢間隔此輪詢間隔。When the SpecialInterval 0x1 flag is enabled, W32Time uses this poll interval instead of a poll interval determine by the operating system. 網域成員預設值為 3600。The default value on domain members is 3,600. 獨立戶端伺服器上的預設值為 604800。The default value on stand-alone clients and servers is 604,800.

新的組建 1702 SpecialPollInterval 包含 MinPollInterval 和 MaxPollInterval 組態登錄值。New for build 1702, SpecialPollInterval is contained by the MinPollInterval and MaxPollInterval Config registry values.
SpecialPollTimeRemainingSpecialPollTimeRemaining 所有All 此項目是由 W32Time 維護。This entry is maintained by W32Time. 它包含所使用的 Windows 作業系統保留的資料。It contains reserved data that is used by the Windows operating system. 它秒再重新開機之後,將會重新同步處理 W32Time 中指定的時間。It specifies the time in seconds before W32Time will resynchronize after the computer has restarted. 這項設定的任何變更都可能造成無法預期的結果。Any changes to this setting can cause unpredictable results. 在這兩個網域成員和獨立戶端與伺服器上的預設值是空白的。The default value on both domain members and on stand-alone clients and servers is left blank.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer

登錄項目Registry Entry 版本Version 描述Description
AllowNonstandardModeCombinationsAllowNonstandardModeCombinations 所有All 此項目指示標準模式組合,允許之間戶端與伺服器同步處理中。This entry indicates that non-standard mode combinations are allowed in synchronization between clients and servers. 網域成員的預設值為 1。The default value for domain members is 1. 獨立戶端與伺服器的預設值為 1。The default value for stand-alone clients and servers is 1.
DllNameDllName 所有All 此項目指定的時間提供 DLL 的位置。This entry specifies the location of the DLL for the time provider.

這個 DLL 網域成員並獨立戶端和伺服器上的預設位置為 %windir%\system32\w32time.dll。The default location for this DLL on both domain members and stand-alone clients and servers is %windir%\System32\W32Time.dll.
支援Enabled 所有All 此項目會指出是否尚未在目前的時間服務 NtpServer 提供者。This entry indicates if the NtpServer provider is enabled in the current Time Service.
  • 1 [是]Yes 1
  • 無 0No 0
網域成員預設值為 1。The default value on domain members is 1. 獨立戶端伺服器上的預設值為 1。The default value on stand-alone clients and servers is 1.
InputProviderInputProvider 所有All 此項目會指出是否支援 NtpServer 提供者。This entry indicates if the NtpServer provider is enabled.
  • 1 [是]Yes 1
  • 無 0No 0
網域成員預設值為 1。The default value on domain members is 1. 獨立戶端伺服器上的預設值為 1。The default value on stand-alone clients and servers is 1.

MaxAllowedPhaseOffset 資訊MaxAllowedPhaseOffset information

為了讓來設定電腦時鐘逐漸 W32Time,時差必須小於 MaxAllowedPhaseOffset 值和符合下列方程式在同一時間:In order for W32Time to set the computer clock gradually, the offset must be less than the MaxAllowedPhaseOffset value and satisfy the following equation at the same time:

|CurrentTimeOffset| / (PhaseCorrectRate*UpdateInterval) < SystemClockRate / 2  

測量 CurrentTimeOffset 時鐘刻度,其中 1ms = 10000 時鐘刻度在 Windows 系統中。The CurrentTimeOffset is measured in clock ticks, where 1ms = 10,000 clock ticks on a Windows system.

也測量 SystemClockRate 與 PhaseCorrectRate 時鐘刻度中。SystemClockRate and PhaseCorrectRate are also measured in clock ticks. 若要取得 SystemClockRate,您可以使用下列命令,並將它轉換秒到時鐘刻度使用公式秒的 * 1000\ * 10000:To get the SystemClockRate, you can use the following command and convert it from seconds to clock ticks using the formula of seconds*1000*10000:

W32tm /query /status /verbose  
ClockRate: 0.0156000s  

SystemclockRate 是系統時鐘的速度。SystemclockRate is the rate of the clock on the system. 使用 156000 秒做為範例,SystemclockRate 想要 = 0.0156000 * 1000 年 \ * 10000 = 156000 時鐘刻度。Using 156000 seconds as an example, the SystemclockRate would be = 0.0156000 * 1000 * 10000 = 156000 clock ticks.

MaxAllowedPhaseOffset 也是秒。MaxAllowedPhaseOffset is also in seconds. 若要將它轉換成時鐘刻度、乘 MaxAllowedPhaseOffset * 1000\ * 10000。To convert it to clock ticks, multiply MaxAllowedPhaseOffset*1000*10000.

下列兩個範例顯示如何在適用於The following two examples show how to apply

範例 1:不同 4 分鐘的時間(例如,您的時間會上午 11:05 和時間範例收到等,並確認正確是上午 11:09)。Example 1: Time differs by 4 minutes (For example, your time is 11:05 AM and the time sample received from a peer and believed to be correct is 11:09 AM).

phasecorrectRate = 1  

UpdateInterval = 30000 (clock ticks)  

systemclockRate = 156000 (clock ticks)  

MaxAllowedPhaseOffset = 10min = 600 seconds = 600*1000\*10000=6000000000 clock ticks  

|currentTimeOffset| = 4mins = 4*60\*1000\*10000 = 2400000000 ticks  

Is CurrentTimeOffset < MaxAllowedPhaseOffset?  

2400000000 < 6000000000 = TRUE  

與是否符合上述方程式?AND does it satisfy the above equation?

(|CurrentTimeOffset| / (PhaseCorrectRate*UpdateInterval) < SystemClockRate / 2)  

Is 2,400,000,000 / (30000*1) < 156000/2  

Is 100,000 < 78,000  

NO/FALSE  

因此 W32tm 想設定時鐘回立即。Therefore W32tm would set the clock back immediately.

注意

在這種情形下,如果您想要設定時鐘回速度緩慢,您會需要調整 PhaseCorrectRate 或登錄 updateInterval,以及以確保方程式結果真正的值。In this case, if you want to set the clock back slowly, you would need to adjust the values of PhaseCorrectRate or updateInterval in the registry as well to ensure the equation results in TRUE.

範例 2:不同 3 分鐘的時間。Example 2: Time differs by 3 minutes.

phasecorrectRate = 1  

UpdateInterval = 30000 (clock ticks)  

systemclockRate = 156000 (clock ticks)  

MaxAllowedPhaseOffset = 10min = 600 seconds = 600*1000\*10000=6000000000 clock ticks  

currentTimeOffset = 3mins = 3*60\*1000\*10000 = 1800000000 clock ticks  

Is CurrentTimeOffset < MaxAllowedPhaseOffset?  

1800000000 < 6000000000 = TRUE  

與是否符合上述方程式?AND does it satisfy the above equation?

(|CurrentTimeOffset| / (PhaseCorrectRate*UpdateInterval) < SystemClockRate / 2)  

Is 3 mins (1,800,000,000) / (30000*1) < 156000/2  

Is 60,000 < 78,000  

YES/TRUE  

在這種情形下時鐘將回速度變慢。In this case the clock will be set back slowly.

Windows 時間服務群組原則設定Windows Time Service Group Policy Settings

您可以設定最 W32Time 參數使用群組原則物件編輯器。You can configure most W32Time parameters by using the Group Policy Object Editor. 這包含設定的電腦將會可靠的時間來源 NTPServer 或 NTPClient 設定時間同步機制,以及設定的電腦。This includes configuring a computer to be an NTPServer or NTPClient, configuring the time synchronization mechanism, and configuring a computer to be a reliable time source.

注意

Windows 時間服務群組原則設定可以設定 Windows Server 2003、Windows Server 2003 R2、Windows Server 2008 和 Windows Server 2008 R2 網域控制站,可在套用只提供給執行 Windows Server 2003、Windows Server 2003 R2、Windows Server 2008 和 Windows Server 2008 R2。Group Policy settings for the Windows Time service can be configured on Windows Server 2003, Windows Server 2003 R2, Windows Server 2008 , and Windows Server 2008 R2 domain controllers and can be applied only to computers running Windows Server 2003, Windows Server 2003 R2, Windows Server 2008 , and Windows Server 2008 R2 .

您可以找到群組原則設定用於 W32Time 設定群組原則物件編輯器嵌入式管理單元在下列位置:You can find the Group Policy settings used to configure W32Time in the Group Policy Object Editor snap-in in the following locations:

  • 電腦設定 Templates\System\Windows 時間服務Computer Configuration\Administrative Templates\System\Windows Time Service

    設定全球設定在此。Configure Global Configuration Settings here.

  • 電腦設定 Templates\System\Windows 時間 Service\Time 提供者Computer Configuration\Administrative Templates\System\Windows Time Service\Time Providers

    設定Windows NTP Client設定。Configure Windows NTP Client settings here.

    Windows NTP Client在此。Enable Windows NTP Client here.

    Windows NTP 伺服器在此。Enable Windows NTP Server here.

警告

部分的群組原則物件 (GPO) 設定的不同對應的預設登錄項目中的系統管理範本檔案 (System.adm) 設定預設值。Some of the preset values that are configured in the System Administrative template file (System.adm) for the Group Policy object (GPO) settings are different from the corresponding default registry entries. 如果您打算使用 GPO 任何 Windows 時間設定,請務必檢視的Windows 時間服務群組原則設定預設值是不同的對應 Windows 時間服務登錄的項目在 Windows Server 2003 (http://go.microsoft.com/fwlink/?LinkId=186066)。If you plan to use a GPO to configure any Windows Time setting, be sure that you review Preset values for the Windows Time service Group Policy settings are different from the corresponding Windows Time service registry entries in Windows Server 2003 (http://go.microsoft.com/fwlink/?LinkId=186066). 這個問題,適用於 Windows Server 2008 R2、Windows Server 2008、Windows Server 2003 R2 和 Windows Server 2003。This issue applies to Windows Server 2008 R2 , Windows Server 2008 , Windows Server 2003 R2, and Windows Server 2003.

下表列出 Windows 時間服務與每個設定的相關聯的預先設定的值相關聯的全域群組原則設定。The following table lists the global Group Policy settings that are associated with the Windows Time service and the pre-set value associated with each setting. 每個設定的相關詳細資訊,會看到在相對應登錄」Windows 時間服務登錄項目「先前此主題中。For more information about each setting, see the corresponding registry entries in "Windows Time Service Registry Entries" earlier in this subject. 下列設定會包含在單一 GPO 稱為全球設定The following settings are contained in a single GPO called Global Configuration Settings.

Windows 時間相關聯的全域群組原則設定Global Group Policy Settings Associated with Windows Time

群組原則設定Group Policy Setting 預先設定的值。Pre-Set Value
AnnounceFlagsAnnounceFlags 1010
EventLogFlagsEventLogFlags 22
FrequencyCorrectRateFrequencyCorrectRate 44
HoldPeriodHoldPeriod 55
LargePhaseOffsetLargePhaseOffset 12800001280000
LocalClockDispersionLocalClockDispersion 1010
MaxAllowedPhaseOffsetMaxAllowedPhaseOffset 300300
MaxNegPhaseCorrectionMaxNegPhaseCorrection 54000(15 時間)54,000 (15 hours)
MaxPollIntervalMaxPollInterval 1515
MaxPosPhaseCorrectionMaxPosPhaseCorrection 54000(15 時間)54,000 (15 hours)
MinPollIntervalMinPollInterval 1010
PhaseCorrectRatePhaseCorrectRate 77
PollAdjustFactorPollAdjustFactor 55
SpikeWatchPeriodSpikeWatchPeriod 9090
UpdateIntervalUpdateInterval 100100

下表列出的可用設定Windows 設定 NTP Client GPO 和預先設定與 Windows 時間服務相關聯的值。The following table lists the available settings for the Configure Windows NTP Client GPO and the pre-set values that are associated with the Windows Time service. 每個設定的相關詳細資訊,會看到在相對應登錄」Windows 時間服務登錄項目「先前此主題中。For more information about each setting, see the corresponding registry entries in "Windows Time Service Registry Entries" earlier in this subject.

Windows 時間相關聯的 NTP Client 群組原則設定NTP Client Group Policy Settings Associated with Windows Time

群組原則設定Group Policy Setting 預設值。Default Value
NtpServerNtpServer time.windows.com 0x1time.windows.com,0x1
輸入Type 預設選項:Default options:

- NTP。- NTP. 未加入網域的電腦上使用。Use on computers that are not joined to a domain.
- NT5DS。- NT5DS. 加入網域的電腦上使用。Use on computers that are joined to a domain.
CrossSiteSyncFlagsCrossSiteSyncFlags 22
ResolvePeerBackoffMinutesResolvePeerBackoffMinutes 1515
ResolvePeerBackoffMaxTimesResolvePeerBackoffMaxTimes 77
SpecialPollIntervalSpecialPollInterval 36003600
EventLogFlagsEventLogFlags 00

Windows 時間服務使用的網路連接埠Network Ports Used by the Windows Time Service

Windows 時間遵循 NTP 規格,這需要 UDP 連接埠 123 的使用時間的所有同步處理通訊。Windows Time follows the NTP specification, which requires the use of UDP port 123 for all time synchronization communication. Windows 時間來保留此連接埠,並仍然保留隨時。This port is reserved by Windows Time and remains reserved at all times. 每當您的電腦同步處理的時鐘或提供時間至另一部電腦,在 UDP 連接埠 123 上執行的通訊。Whenever the computer synchronizes its clock or provides time to another computer, that communication is performed on UDP port 123.

注意

如果您的電腦有多個網路介面卡(也稱為多重主機電腦),您無法選擇讓 Windows 時間服務為基礎的網路介面卡。If you have a computer with multiple network adapters (also called a multihomed computer), you cannot selectively enable the Windows Time service based on the network adapter.

相關的資訊Related Information

下列資源包含的此一節中相關的其他資訊。The following resources contain additional information that is relevant to this section.

  • RFC 1305 年IETF RFC 資料庫中RFC 1305 in the IETF RFC Database

也了See Also

Windows 時間服務相關的影片Videos about the Windows Time Service

找不到 content 需要嗎?Not finding content you need? Windows 10 的使用者,告訴我們您要在的意見反應中樞Windows 10 users, tell us what you want on Feedback Hub.