NTP Services
Check NTP configuration:
- w32tm /query /configuration (checks and shows the NTP configuration)
- w32tm /query /peers (checks and shows the list of NTP servers configured along with their status)
- w32tm /resync /nowait (forces the synchronization of time)
- w32tm /query /source (shows the source of the time)
- w32tm /query /status (shows the service status, use it to check whether the time is coming from the external NTP servers or the cmos clock)
Check NTP server response:
- w32tm /stripchart /computer:domainnameORipaddress /dataonly /samples:5
In Linux:
- ntpdate -q time.windows.com
- ntpq -p 192.168.1.1