Windows server 2016/2019/2022 sync with NTP server

 Steps to follow:


1.Check Existing config - w32tm /query /status

C:\Users\Administrator>w32tm /query /status

Leap Indicator: 0(no warning)

Stratum: 1 (primary reference - syncd by radio clock)

Precision: -23 (119.209ns per tick)

Root Delay: 0.0000000s

Root Dispersion: 10.0000000s

ReferenceId: (source name:  "")

Last Successful Sync Time: 11/11/2022 

Source: Local CMOS Clock


2.Stop Windows Time service - net stop w32time

C:\Users\Administrator>net stop w32time

The Windows Time service is stopping.

The Windows Time service was stopped successfully.


3.Sync with NTP server - w32tm /config /manualpeerlist:<NTP Server NAPE/IP> /syncfromflags:MANUAL

C:\Users\Administrator>w32tm /config /manualpeerlist:ntp.test.net /syncfromflags:MANUAL

The command completed successfully.

4.Start the windows Time service -  net start w32time

C:\Users\Administrator>net start w32time

The Windows Time service is starting.

The Windows Time service was started successfully.


5.Resync the new time - w32tm /resync

C:\Users\Administrator>w32tm /resync

Sending resync command to local computer

The computer did not resync because no time data was available.







No comments:

Post a Comment

Selenium firefox driver session fails with : Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location,

 Error: With Firefox driver /gecko driver Could not start a new session. Response code 500. Message: Expected browser binary location, but u...