“This is the 25th day of my participation in the Gwen Challenge in November. See details: The Last Gwen Challenge in 2021”

📚 preface

The NTP server is essential for enterprises. However, if we need to use it for our daily study, we can configure it by ourselves.

Here’s how to do it!

Change the server type to NTP:

  1. Choose “Start > Run”, type regedit, and then select “OK”.

  2. Locate and select the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

  3. In the right pane, right-click “Type” and choose “Modify”.

  4. Type NTP in the Value Data box in Edit Value, and then select OK.

2. Set toAnnounceFlags5:

  1. Locate and select the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config

  2. In the right pane, right-click “AnnounceFlags” and choose “Modify”.

  3. Type 5 in the Value data box in Edit DWORD value, and then select OK.

Enable NTPServer

  1. Locate and select the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer

  2. In the right pane, right-click “Enbaled” and choose “Modify”.

  3. Type 1 in the Value data box in Edit DWORD value, and then select OK.

  4. Specify the time source. To do this, follow these steps:

    1. Locate and click the following registry subkey:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

    1. In the right pane, right-click “NtpServer” and choose “Modify”.

    2. In “Edit Values”, type Peers in the “Value Data” box and select “OK”.

4. Restart the service

1. Close the registry editor.

2. At a command prompt, type the following command to restart the Windows Time Service, and then press Enter:

net stop w32time && net start w32time
Copy the code