Today we will look at configuring primary domain controller (PDC) to connect to an external source to keep your time synchronized. After doing this all domain client will get time from your PDC.
First we need to know which DC is PDC emulator. To know that RUN one of commands below:
[System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest().RootDomain.PdcRoleOwner.Name
or
netdom query fsmo
So we know that PDC is TDC1.tekbloq.local. To sync the domain controller to an external time source first you need to find the closest time server and then run the following commands:
> w32tm.exe /config /manualpeerlist: az.pool.ntp.org /syncfromflags:manual /reliable:YES /update – 1st command define to use az.pool.ntp.org time server;
> w32tm.exe /config /update – 2nd command perform a time synchronization with the external source;
> Restart-Service w32time – 3rd command restart time service for changes take effect;
To sync time to clients you can use this command below:
w32tm /resync