I need to verify the current NTP configuration on some Windows systems. Ideally, I'd like to be able to do this via command line instead of navigating through configuration screens (especially since I'm working on several different OS versions, and configuration screens tend to not always be in the same place across versions). I'm hoping to find a quick, memorable command that I can just punch into a CMD console to get the result. A batch file I can carry around with me will do just as well, though.
Specifically, I need the following:
- Show whether or not the system is configured to receive time from an NTP server.
- Show the NTP server(s) the system is receiving time from.
- Show the time of the last synchronization.
- Show the current time on the system.
What command(s) would be necessary to achieve these results? Whatever I use must be cross-compatible with Windows XP, 7, Server 2003, and Server 2008.