Configuring the Time Server in Windows 2012 R2

As we all know, Time service is the most important service in any network, of any system, A synchronized clock on all computers is the minimum we can have for everything to work and also have all internal systems correctly synchronized. Normally we will have a network time server that will get the time from an external clock and provide it internally.

 

ntp-server-windows-2012-bujarra

Default map of what an NTP Server is, in this case a Windows Server 2012 R2 that will get the time from an external time server (so in the FW of our network we will allow this DC to access said time server by 123udp). And so any team on the network that requests the time will have it!

 

Windows-2012-R2-NTP-Server-Time-01-Bujarra

First, we must know who our PDC is (Primary Domain Controller) We can run the following PowerShell to find out who it is: ‘[System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest().RootDomain.PdcRoleOwner.Name'.

And we will configure using these simple commands that it gets the time from an external server 'w32tm.exe /config /manualpeerlist:"fqdn_servidor1,fqdn_servidor2" /syncfromflags:manual /reliable:YES /update’ we will be able to use the very mythical 'es.pool.ntp.org’ In the case of Spain or any more traditional military watch =)

Finally, we will run the following command to synchronize the time with that source: 'w32tm.exe /config /update’ and we can if everything is correct restart the service to put this change into production with 'restart-Service w32time’

Recommended Posts

Author

nheobug@bujarra.com
Autor del blog Bujarra.com Cualquier necesidad que tengas, Do not hesitate to contact me, I will try to help you whenever I can, Sharing is living ;) . Enjoy documents!!!