Windows 10
To get started, click the “Start” box at the bottom left of your desktop
Type “gpedit.msc” and select “gpedit”
When the command is executed, a window called “Local Group Policy Editor” will open
Go to the “Computer Configuration” section, then “Administrative Templates”
Next, go to the “System” section
Next, the “Windows Time Service” section
Then go to “Time Providers”
On the right, select the “Enable Windows NTP client” setting
Double-click the left mouse button, the settings window will open
Switch to “Enabled” mode and press the “OK” button
Go to the “Configure Windows NTP client” setting
In the settings window, switch the mode to “Enabled”
We change the items, in the “NtpServer” field we specify the IP address of the NTP server or its DNS name, for example “pool1.ntp.od.ua”, or any other server from our list, and through which a special server flag is specified, in in this case it is “0x9”
In the “Type” field, indicate that we will use the “NTP” protocol
In the “SpecialPollInterval” field, we specify “900” seconds, this is the server polling interval
Save by pressing the “OK” button
Close the “Local Group Policy Editor” window
The next stage is setting up the time synchronization service
Click in the “Search” field
Enter the “services.msc” command, and select “services” from the resulting list
The “Services” window will open, select “Windows Time Service” from the list
Select the service, press the right mouse button and select “Properties”
The settings window will open
Change “Startup type” to “Automatic” mode
Then start the service by clicking the “Start” button
Save the changes by pressing the “OK” button
Close the “Services” window
open search, write “cmd”
run on behalf of the administrator
the console will open, enter the command
sc triggerinfo w32time start/networkon stop/networkoff
execution result
The next step is to monitor the operation of the service by viewing and analyzing the logs
Click on the “Search” field in the lower left corner of the desktop
Enter the “eventvwr.msc” command and select “View event logs” from the list
The “Event Viewer” window will open, select the “Windows Logs” item in the left part
Select the “System” magazine
We find the event whose source is “Time-Service”
Double-click on the event with the left mouse button, a detailed description window will open
In this case, the log event of a successful synchronization with an external NTP server
Close the “View events” window
Now let’s check how much time our clock works
Click in the “Search” field
Write the “cmd” command
A “Command Prompt” window will open.
Enter the command “w32tm /stripchart /computer:pool1.ntp.od.ua /samples:3”
Where “w32tm” is a time service management tool, “stripchart” displays a graph with statistics of clock deviations, “computer:pool1.ntp.od.ua” is a remote NTP server with which we compare the local clock, and finally the argument “samples:3” means to build graph of only 3 connections
An example of program execution
This graph shows that at 2:41:31 the first of three test connections was made to an external NTP server, the result showed a response delay from the server of +00.0112548 seconds and a time difference of +00.0029020 seconds
The setup is complete, the test showed acceptable results and confirmed the functionality of the time synchronization service in Windows 10.
Leave a Reply