This can be set in GPO for windows 2003 ( maybe win 2k ) AD, so you may want to look there first.
I hope this helps !
Main Topics
Browse All TopicsHi Experts,
I need a way of syncing with an NTP server upon Windows startup.
Is there a dos command that will fetch time from an NTP server so i can >> it to 'time' to set time = result.
The pc is not part of a domain
Windows Time syncing cannot run between certain hours. Startup is the most feasible option.
If i've not been clear enough let me know and i'll try and explain further :-)
Thanks for reading
Jon
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
doesn't help i'm afraid.
i've done some more digging,
http://www.meinberg.de/eng
The compiled windows binaries include a prog called NTPQ.
If i run ntpq -p pool.ntp.org > c:\test.txt
then test.txt contains the output i've put in the code snippet. Now to figure out what to do with these results...
Hi JonDanger,
Have a look here:
http://support.microsoft.c
You can use the following to register a list of valid NTP servers for the W32Time service:
w32tm /config /update /manualpeerlist:"time.nist
So long as the service is running, time synchronization will happen automatically. But if you have set the list using the command above, and need to do an immediate sync, the below command can be used:
w32tm /resync
pb
Ah..
You don't want time sync running during the day.. I see now.
You can still use the above, just use a batch file to add the time server each day, then update the time, then blank out the time server:
:: -----TimeSync.bat----
@ECHO OFF
W32tm /config /update /manualpeerlist:"time.nist
W32tm /resync
PING -n 5 time.nist.gov >NUL
W32tm /config /update /manualpeerlist: /syncfromflags:manual
:: -----TimeSync.bat----
The ping is used as a delay, so we can be sure that the time server is queried and the time udpated before we delete the list of time servers. If you have the Win2K resource kit, you can also use the SLEEP command, but PING should be available on all systems. If 5 ping requests doesn't give enough time, just increase it.
pb
Business Accounts
Answer for Membership
by: jondangerPosted on 2008-08-18 at 15:30:59ID: 22255961
going to use this:
NET TIME \\server /SET /YES
would still like to know if there's an answer to the original question though so i don't have to worry about a timeserver being correct