Sync Time with NTP

Manjot Singh 236 Reputation points
2021-03-29T05:26:29.823+00:00

Hi,

I would like to sync my Windows Server 2019 time to 0.ca.pool.ntp.org instead of Local CMOS Clock

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,444 questions
0 comments No comments
{count} votes

Accepted answer
  1. Daisy Zhou 18,701 Reputation points Microsoft Vendor
    2021-03-30T02:25:50.867+00:00

    Hello @Manjot Singh ,

    Thank you for posting here.

    1.Would you please tell us whether your Windows server 2019 is in one domain or not?
    2.Is your Windows server 2019 virtual machine or physical machine?

    If your your Windows server 2019 is in one domain, we can see Time Synchronization in an AD DS Hierarchy.

    1.Time on PDC is synchronized with external NTP time server.
    2.TIme on other DCs is synchronized with PDC.
    3.Time on domain clients and member servers is synchronized with other DCs.

    Registry configuration method

    ===PDC===

    (If PDC is a virtual machine, set the first one entry, if PDC is not a virtual machine, don’t set this one entry)

    HLM\SYSTEM\CurrentControlSet\services\w32time\TimeProviders\VMICTimeProvider
    Name: Enabled
    Type: REG_DWORD
    Data:0

    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
    Key Name: AnnounceFlags
    Type: REG_DWORD (DWORD Value )
    Data: 0x5

    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
    Key Name: Type
    Type: REG_SZ(String Value)
    Data: NTP

    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
    Key Name: NtpServer
    Type: REG_SZ(String Value)
    Data: Peers (time.windows.com,0x9)

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
    Key Name: Enabled
    Type: REG_DWORD
    Data: 1

    ===other DC & Client===

    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
    Key Name: Type
    Type: REG_SZ(String Value)
    Data: NT5DS

    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
    Key Name: AnnounceFlags
    Type: REG_DWORD (DWORD Value )
    Data: 0xa

    GPO configuration methond

    Time Synchronization in Active Directory Forests
    https://social.technet.microsoft.com/wiki/contents/articles/18573.time-synchronization-in-active-directory-forests.aspx

    Reference
    How the Windows Time Service Works
    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc773013(v=ws.10)?redirectedfrom=MSDN

    If your Windows server 2019 is not in any one domain, we can configure it as below.

    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
    Key Name: Type
    Type: REG_SZ(String Value)
    Data: NTP

    Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
    Key Name: NtpServer
    Type: REG_SZ(String Value)
    Data: 0.ca.pool.ntp.org

    Tip: Please back up your registry first before changing it.

    Hope the information above is helpful.

    Should you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Manjot Singh 236 Reputation points
    2021-03-29T06:01:01.927+00:00

    @SUNOJ KUMAR YELURU I tried this already, it doesn't work. Time does not change

    1 person found this answer helpful.

  2. SUNOJ KUMAR YELURU 13,921 Reputation points MVP
    2021-03-29T05:41:44.477+00:00

    Hi @Manjot Singh
    Thank You for posting in Q & A.

    Follow the below URL
    CONFIGURING NTP SERVER FOR TIME SYNCHRONIZATION

    If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.

    0 comments No comments

  3. Manjot Singh 236 Reputation points
    2021-03-29T06:28:46.467+00:00

    @SUNOJ KUMAR YELURU after running the commands it's using local cmos clock.

    PS C:\Windows\system32> w32tm /query /source
    Local CMOS Clock
    PS C:\Windows\system32> w32tm /query /configuration
    [Configuration]

    EventLogFlags: 2 (Local)
    AnnounceFlags: 5 (Local)
    TimeJumpAuditOffset: 28800 (Local)
    MinPollInterval: 6 (Local)
    MaxPollInterval: 10 (Local)
    MaxNegPhaseCorrection: 172800 (Local)
    MaxPosPhaseCorrection: 172800 (Local)
    MaxAllowedPhaseOffset: 300 (Local)

    FrequencyCorrectRate: 4 (Local)
    PollAdjustFactor: 5 (Local)
    LargePhaseOffset: 50000000 (Local)
    SpikeWatchPeriod: 900 (Local)
    LocalClockDispersion: 10 (Local)
    HoldPeriod: 5 (Local)
    PhaseCorrectRate: 7 (Local)
    UpdateInterval: 100 (Local)

    [TimeProviders]

    NtpClient (Local)
    DllName: C:\Windows\SYSTEM32\w32time.DLL (Local)
    Enabled: 1 (Local)
    InputProvider: 1 (Local)
    AllowNonstandardModeCombinations: 1 (Local)
    ResolvePeerBackoffMinutes: 15 (Policy)
    ResolvePeerBackoffMaxTimes: 7 (Policy)
    CompatibilityFlags: 2147483648 (Local)
    EventLogFlags: 0 (Policy)
    LargeSampleSkew: 3 (Local)
    SpecialPollInterval: 1024 (Policy)
    Type: NTP (Policy)
    NtpServer: 0.ca.pool.ntp.org,0x1 1.ca.pool.ntp.org,0x1 (Policy)

    NtpServer (Local)
    DllName: C:\Windows\SYSTEM32\w32time.DLL (Local)
    Enabled: 1 (Local)
    InputProvider: 0 (Local)
    AllowNonstandardModeCombinations: 1 (Local)