Jun 082016

If you’re using Azure as an Active Directory lab and need to make sure your NTP is set properly with an external source, this is a good set of commands to run on your VM’s. I know Azure’s own built-in NTP synchronization system via HyperV is probably bar-none, but I’m trying to experiment with NTP settings on my PDC emulator and it just gets in the way.

I found this extremely useful tidbit of information here: https://blogs.technet.microsoft.com/keithmayer/2012/10/10/deploying-windows-server-2012-essentials-rtm-now-available/

Of course I lay no claim to this knowledge, it was pre-existing. I just added the little strike through below. 🙂

NOTE: Replace TIME_SERVER_x with time servers of your choice, hopefully Stratum 1.

If you run these commands, you will partially disable HyperV time integration.
Partially Disable Hyper-V Host Time Synchronization.

reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider /v Enabled /t reg_dword /d 0

Configure Windows Server Essentials to synchronize time with an external authoritative time server.

w32tm /config /manualpeerlist:TIME_SERVER_1, TIME_SERVER_2 /syncfromflags:MANUAL

Restart the Windows Time Service and force a time synchronization to occur.

net stop w32time && net start w32time
w32tm /resync /force