How to Check NTP Server Date & Time Using Windows Command Line

Command Prompt
Command Prompt

Ever wonder if your NTP server(s) time is correct before pointing mission critical devices to them? Here’s a quick and easy way to verify they are reporting the correct time.

Open a command prompt and type the following:

w32tm /stripchart /computer:IPorHostname /dataonly /samples:5

IPorHostname is the IP address or Hostname of the NTP Server

/dataonly returns the time/date only.

/samples is how many times do you want it to check the time and report back the variance.

Here is a screenshot of the result

C:\Windows\system32>w32tm /stripchart /computer: /dataonly /samples:5
Tracking [].
Collecting 5 samples.
The current time is 08-02-22 03:11:14.
03:11:14, +64.3705479s
03:11:16, +64.3705684s
03:11:18, +64.3706214s
03:11:20, +64.3706371s
03:11:22, +64.3706740s

Be the first to comment

Leave a Reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.