Data Networking Blog
Blog for Admins

NTP and Windows

Standard

Recently I was asked to setup external NTP on a couple of windows 2012 servers and to match the NTP servers to another existing server so to be consistent.

There is no GUI to do this and alot of the posts on the internet talk about changing registry which personally I am not too comfortable with, so a better way to do this is to use a utility called

W32tm (Win 32 Time). This will work on Windows Server 2003 and above.

So if you, like me, have an existing server and you wish to check what external NTP servers are setup, open a cmd as administrator and type:

You can also define a different source with a /computer:<target> but if you don’t provide one then it will default to local host.

So this command gave the information I was after,

So now I know the server is using google’s US based NTP servers. So I will add something similar to my Australian servers but change it so it talks to Australian based servers. A good tip is to ensure the firewall allows outgoing NTP traffic for your destination NTP servers else you might mess things up.

Then run this on an elevated command prompt.

Now restart the service by running net stop w32time and net start 32time. You can also use services.msc to restart it and it’s called Windows Time. Once the service is restarted you can query it like the one i showed above or check the status like

That’s it you have successfully configured external NTP on a Windows server.

 

April 8, 2015 Windows Jd

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Font Size
Decrease Size Default Size Increase Size
Select Skin
Select Underlay Background
Select Overlay Background
Scheme Switcher Toggle