Wednesday, May 27, 2015

How to change NTP settings in PDC







    1. [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest().RootDomain.PdcRoleOwner.Name
      PowerShell - PdcRoleOwner
  1. Login to your primary domain controller
  2. Open up a command prompt/powershell window with administrative privilegesServer 2012 - PowerShell - Run as Administrator
  3. Execute the following command to configure the domain controller to look at an external time source
    1. w32tm.exe /config /manualpeerlist:”0.us.pool.ntp.org 1.us.pool.ntp.org 2.us.pool.ntp.org 3.us.pool.ntp.org” /syncfromflags:manual /reliable:YES /update
      w32tm config manualpeerlist syncfromflags manual ntp
      1. Notes: You can find the closest time server near you by browsing the following page and clicking on the nearest zone: http://www.pool.ntp.org/zone/@
  4. Execute the following command to actually perform a time synchronization with the external source
    1. w32tm.exe /config /update
      w32tm config update
  5. Execute the following command for the changes to take effect
    1. Restart-Service w32time
      Restart-Service w32time





·         Ensure the type of DC running on server.

·         Pointing Master DC to Internal reliable time source.

w32tm /config/manualpeerlist:"0.us.pool.ntp.org"  /syncfromflags:manual /reliable:yes /update

Where, 0.us.pool.ntp.org is the  reliable time source

·         Resync with the time source with above command configuration.

W32tm /resync /rediscover

·         Restart the time services on Slave DC -

Net Stop w32time

Net Start w32time








·         


·         Get into the below registry Hive.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

w32tm /config /manualpeerlist:"server1.com server2.com" /syncfromflags:manual /reliable:yes /update

No comments:

Post a Comment