Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a Windows server on a VM and the time isn't accurate after it reboots.

Is there a command to set the time on a Windows 2008 via NTP when it boots?

It needs to run at boot time not at logon time.

share|improve this question

migrated from May 16 '12 at 10:57

This question came from our site for professional and enthusiast programmers.

why the votes to close it? – vfclists May 4 '12 at 18:06

w32tm /resync

This requires that you have a valid time provider configured. If this computer is joined to a domain it will sync the time with one of your domain controllers.

share|improve this answer
where are the providers configured? the server is a standalone server, not part of a domain. Can the command work with the ntp servers configured in the Time and Date applet – vfclists May 18 '12 at 7:02
I am not entirely sure if it can pull the data out of this configuration, you'd better configure the external ntp servers directly in the registry. Have a Look at KB816042 starting from this section: Configuring the Windows Time service to use an external time source – leepfrog May 18 '12 at 9:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.