Why does Windows 10 time sync keep failing?

Set Windows Time service to automatic. Windows Time is a service that maintains the synchronization process with time servers on the network. If this service is not enabled (there could be many reasons for this to happen), time sync on Windows 10 will fail. Click Start, Apply, and OK.
How can I fix the time.windows.com synchronization error?
  1. Check if Windows Time service is running.
  2. Use a different server.
  3. Restart Windows Time service.
  4. Use Command Prompt.
  5. Disable your third-party firewall.
  6. Change the default update interval.
  7. Add more servers to the registry.
  8. Change registry values.