How to Set Windows Time Service

Set Domain Controller to sync Windows Time Service with HK Observatory's Network Time Service.

C:\w32tm /config /manualpeerlist:"stdtime.gov.hk,0x8" /syncfromflags:MANUAL /reliable:yes /update

Log Name:      System
Source:        Microsoft-Windows-Time-Service
Date:          9/12/2020 12:03:33 PM
Event ID:      35
Task Category: None
Level:         Information
Keywords:      
User:          LOCAL SERVICE
Computer:      server-a.domain.hk
Description:
The time service is now synchronizing the system time with the time source stdtime.gov.hk,0x8 (ntp.m|0x8|0.0.0.0:123->118.143.17.82:123) with reference id 1376882550. Current local stratum number is 2.


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
  • NoSync: Does not synchronize time.
  • NTP: Synchronizes time to the time sources specified in the Parameters\NtpServer entry.
  • Nt5DS: Synchronizes time to the domain hierarchy.
  • AllSync: Uses all synchronization mechanisms available.

References



Update