Server - Network Time Protocol


Query server NTP utilizzato:

w32tm /query /source

Impostazione server NTP: 

w32tm /config /manualpeerlist:IPNTPServer /syncfromflags:MANUAL

oppure

w32tm /config /manualpeerlist:DNSNameNTPServer,0x1 /syncfromflags:MANUAL

Aggiornamento della configurazione:

w32tm /config /update

Riavvio Windows Time service:

net stop w32time && net start w32time

Sincronizzazione manuale:

w32tm /resync /nowait

Per controllo verificare le seguenti chiavi di registry:

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type=NTP

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\AnnounceFlags = 5

(5=1+4 0x01 = Always time server, 0x04 = Always reliable time server, per default è 10=2+8 0x02 = Automatic time server, 0x08 = Automatic reliable time server. Insostanza si usa 10 per sincronizzarsi con l’orologio interno CMOS e 5 per sincronizzarsi con una fonte esterna)

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer\Enabled = 1

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer = ServerNTP



[update 2016.09.09]

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NTPClient\SpecialPollInterval

Set this to the period in seconds that the Windows XP machine should poll the NTP server. A recommended value is 900 seconds which equates to every 15 minutes.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NTPServer\Enabled

Change this value to 1.