query Time Server & set(ie NET TIME \\<SERVER> /SET /Y)
Posted on 2004-04-28
As the subject heading says, I have a client/server setup in where log files are time sensitive and therefore need to synchronize the time between the server and client machine when one of the client machine reboots.
I know how to set the sntp server :
net time /setsntp:<timeserver>
and how to sync the time (assuming it does this on boot as well)
NET TIME \\<SERVER> /SET /Y
how can I query the network and find a list of time servers so that I can give the user a choice of which one to use?