Hello Manfred Meng,
Thank you for posting in our Q&A forum.
Firstly, we need to configure the primary domain controller with a reliable external time source.
First of all, we need to ensure the following two things:
- Make sure the UPD 123 port is open.
- On the PDC, we can ping the external time source (that is, the IP address of the server where the external time source is located).
Secondly, we can try the following method to configure the external time source by modifying the registry on the PDC, as follows:
1.PDC declares itself an NTP server:
Path: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeConfig
Key Name: AnnounceFlags
Type: REG_DWORD (DWORD Value )
Data: 0x5
2.Change the server type to NTP:
Path: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParametersType
Key Name: Type
Type: REG_SZ(String Value)
Data: NTP
3.Enable the NTP server:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpServer
Key Name: Enabled
Type: REG_DWORD
Data: 1
4.Specify which server to act as the NTP server:
Path: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParameters
Key Name: NtpServer
Type: REG_SZ(String Value)
Data: Peers (such as: server.time.edu.cn, 0x9)
5.Only our PDC machine is a virtual machine, we need to set this registry. Because your PDC is also a VM, you should set this registry.
HLMSYSTEMCurrentControlSetservicesw32timeTimeProvidersVMICTimeProvider
Name: Enabled
Type: REG_DWORD
Data:0
6.For other registry settings, just keep the defaults and close the Registry Editor. Use the command (net stop w32time && net start w32time) to restart the time service for the above configuration to take effect.
Reference:
How to configure an authoritative time server in Windows Server
https://support.microsoft.com/zh-cn/help/816042/how-to-configure-an-authoritative-time-server-in-windows-server
Thirdly, configure time settings on non-PDC machines.
===other DCs & Clients===
Path: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParametersType
Key Name: Type
Type: REG_SZ(String Value)
Data: NT5DS
Path: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeConfig
Key Name: AnnounceFlags
Type: REG_DWORD (DWORD Value )
Data: 0xa
Fourthly, What VM platform are you using? You should also disable time sync on VM platform.
1.If you are using VMware, you can check as below.
Disabling Time Synchronization (1189)
https://kb.vmware.com/s/article/1189
Disabling Time Synchronization
https://docs.vmware.com/en/VMware-Tools/11.1.0/com.vmware.vsphere.vmwaretools.doc/GUID-678DF43E-5B20-41A6-B252-F2E13D1C1C49.html
2.If you are using Hyper-V, you should disable time sync in Hyper-V.
Hope the information above is helpful. If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.