I’ve been looking at many forums and google results and can’t find what I’m looking for.
Essentially I want to get an accurate time from a public NTP server, in DOS or powershell.
I know there’s the w32tm which can query a remote ntp server, but the result it gives is how much out my computer time is, not the actual time of the remote ntp server.
I’ve found various windows apps that work exactly as I want, but i can’t get the output to a variable to do anything with. I’m dead surprised there’s no .exe that just gets the time from a source, or that it wasn’t written into w32tm.
Something like ntpquery.exe pool.ntp.org (followed maybe like a timezone or something) with an output of the date / time is all I’m after.
Perhaps one of you knowledgeable folk know of a way I can do this?
Many thanks in advance.