Solved

Point Windows 2012 to a NTP server

Posted on 2014-09-20
3
120 Views
Last Modified: 2015-07-24
Hi,

I have two Windows 2012 R2 Hosting 6 HyperV Server(3 each).Including my Primary Domain Controller(win2k8 R2)

Frequently what happens is my 2012 Host server Clock runs 5 Mins slow and that changes the time of Domain controllers as well.
And this effects the entire Forest.

Is there a way we can point the 2012 server to a NTP server so that it can maintain the correct time.
Any help is highly appreciated
0
Comment
Question by:Sooraj Ravindran
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
becraig earned 500 total points
ID: 40334983
This is easy enough (run a cmd or powershell window as admin)

Then run:
Powershell:
w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:MANUAL
Stop-Service w32time
Start-Service w32time

Cmd:
w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:MANUAL
sc stop w32time
sc start w32time
0
 
LVL 11

Expert Comment

by:Ganesh Kumar A
ID: 40335162
First check the host clock time configuration, though its Hyper-v it takes the clock time from host. You cannot use internet time for the host as it doesn't takes the same VM's configuration. You can achieve it in someways but below is recommended.

Recommend to keep internal time server configured on separate box (Dual core 2GB with 100GB system) would be sufficient,  Use Windows / Linux (linux always better).

Configure NTP server on the box and ensure it syncs with external public time server for sync periodically.

Configure all Hyper-V host to sync with the newly configured NTP server and use your AD to sync with that box.
=================================================================

Use this command to point your NTP server or public NTP server

Net time \\<ntpserver> /set /yes

http://www.timetoolsglobal.com/2013/06/21/how-to-synchronize-microsoft-windows-to-a-ntp-server-1/

You need to force the NTP time through following.

w32tm /config /syncfromflags:domhier /update

You need to force w32tm to reload its configuration from the registry:

w32tm /config /update

Check the config with:

w32tm /query /source

The result should be like this:
0.north-america.pool.ntp.org,0x1

w32tm /resync will sync with the ntp server.
0
 
LVL 29

Expert Comment

by:becraig
ID: 40347707
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article covers how to install the Microsoft Windows Operating System (OS). What is covered in this article:  > Different Versions and Editions of the Windows OS  > Upgrading versus Fresh Installation of the OS           - Steps to take pr…
Log files are useful in diagnosing and repairing problems.  This is a list of common log files and their standard locations that I've compiled.   While this is not exhaustive, it is a pretty good list that I've found to be useful.  I may update it f…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now