Manually Check NTP Server from Windows 8 Command Line

Periodically, I am in the field and need to query an NTP server from a Windows command prompt. The following command works in Windows 8 and Server 2003 / 2008; I presume Windows XP has the same program available for manual queries.

This is an example of a valid NTP query response, when requesting time from Penn State’s public NTP server:

C:\Users\Dennis Little>w32tm /stripchart /computer:clock.psu.edu /dataonly /samples:5

Tracking clock.psu.edu [128.118.25.3:123].
Collecting 5 samples.
The current time is 8/14/2014 12:08:31 PM.
12:08:31, +01.2892989s
12:08:33, +01.2903465s
12:08:35, +01.2800907s
12:08:37, +01.2809490s
12:08:39, +01.2832552s

If the remote NTP server is blocking our queries to UDP port 123, you might see error messages like this:

10:16:59, error: 0x800705B4
10:17:02, error: 0x800705B4
10:17:05, error: 0x800705B4
10:17:08, error: 0x800705B4
10:17:11, error: 0x800705B4

An explanation of error XXX is provided by this site:

“W32TM Error 0x800705B4 occurs when the calling NTP Client program, W32TM in this case, can’t connect to the destination time server, either because that time server isn’t running NTP server software, or UDP port 123 is blocked on the server.”

3 Responses to “Manually Check NTP Server from Windows 8 Command Line”

  1. thanks! that was helpful

  2. Hey Dennis, good one,
    it helped me to create a Powershell script to correct a system time.

    Thanks a lot.

  3. You’re welcome, Paulo!

Leave a Reply

You must be logged in to post a comment.