Server 2012: Configuring time syncronization from Internet time serveers

In this post we will set up our server to synchronize the time from internet time servers. Since my server is located in Denmark, I will use the list of servers found here: http://www.pool.ntp.org/zone/dk

You can use whatever servers you want in the second line below:

net stop w32time
w32tm /config /syncfromflags:manual /manualpeerlist:"0.dk.pool.ntp.org, 1.dk.pool.ntp. org, 2.dk.pool.ntp.org, 3.dk.pool.ntp.org"
w32tm /config /reliable:yes
net start w32time

To verify the setup Works, you can enter the following line:

w32tm /query /configuration
It will output something similar to:
[Configuration]
EventLogFlags: 2 (Local)
AnnounceFlags: 5 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 10 (Local)
MaxPollInterval: 15 (Local)
MaxNegPhaseCorrection: 4294967295 (Local)
MaxPosPhaseCorrection: 4294967295 (Local)
MaxAllowedPhaseOffset: 300 (Local)
>
FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 1 (Local)
UpdateInterval: 30000 (Local)
>
[TimeProviders]
NtpClient (Local)
DllName: C:\Windows\system32\w32time.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 3600 (Local)
Type: NTP (Local)
NtpServer: 0.dk.pool.ntp.org, 1.dk.pool.ntp.org, 2.dk.pool.ntp.org, 3.dk.pool.ntp.org (Local)
>
VMICTimeProvider (Local)
DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
NtpServer (Local)
DllName: C:\Windows\system32\w32time.dll (Local)
Enabled: 0 (Local)
InputProvider: 0 (Local)

Thats pretty much it.

Posted in Server 2012

Leave a Reply