Attivare la sincronizzazione dell'orario in Windows 2000 Server
Appena installato Windows 2000 Server, uno dei primi messaggi di errore in eventlog è:
EventID: 62
Source: w32time
Description: This Machine is a PDC of the domain at the root of the forest.
Configure to sync from External time source using the net command,
'net time /setsntp:<server name>'.
Occorre configurare il servizio di aggiornamento dell'orario di sistema, usando un server NTP esterno.
- Impostare il server ntp da utilizzare (assicurarsi di poter accedere alla porta udp 123 verso questo indirizzo):
net time /setsntp:"time.ien.it"
- Fermare il servizio
net stop w32time
- Effettuare una sincronizzazione manuale:
w32tm -once
Verificare che la sincronizzazione abbia successo:
W32Time: BEGIN:InitAdjIncr W32Time: Adj 100144 , Incr 100144 fAdjust 0 W32Time: END:Line 2503 W32Time: BEGIN:TsUpTheThread ... W32Time: Sending to server 48 bytes... W32Time: BEGIN:TsUpTheThread W32Time: END Line 1407 W32Time: NTP(S): waiting for datagram... W32Time: Recv'ed from server 48 Bytes... ... W32Time: Adjusting time by 238 s ... W32Time: Time service stopped. W32Time: END:Line 407
Inoltre in eventolog/System, si avrà l'evento:
EventID: 593 Source: w32time Description: Time service corrected the clock error by 238 seconds
Riavviare il servizio:
net start w32time
Riferimento: Keeping Time with Win2K