Nastavení synchronizace času s NTP serverem v internetu
Tento problém lze vyřešit konfigurací služby Systémový čas systému Windows tak, aby byl při synchronizaci s časovým serverem použit režim klienta. Postupujte následujícím způsobem:1. Klepněte na tlačítko Start, dále na příkaz Spustit, zadejte příkaz cmd a stiskněte klávesu ENTER.
2. V příkazovém řádku zadejte následující příkazy v uvedeném pořadí. Po zadání jednotlivých příkazů stiskněte klávesu ENTER. • w32tm /config /manualpeerlist:adresa_IP_serveru_NTP,0x8 /syncfromflags:MANUAL
• net stop w32time
• net start w32time
• w32tm /resync
Režim používaný službou Systémový čas systému Windows k odeslání požadavků je nastaven pomocí následujícího podklíče registru:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
Pokud má položka Povoleno v tomto podklíči hodnotu 1, používá služba Systémový čas systému Windows symetrický aktivní režim. V opačném případě používá služba Systémový čas systému Windows režim klienta.
Nastavení 0x8, na které je odkazováno v příkazu v části Řešení, nastaví použití režimu klienta služby Systémový čas systému Windows.
Spolu s přepínačem /manualpeerlist lze použít následující platná nastavení použitého režimu: • 0x01 – použít speciální interval dotazování (SpecialInterval)
• 0x02 – použít pouze jako záložní (UseAsFallbackOnly)
• 0x04 – odeslat požadavek v symetrickém aktivním režimu (SymmetricActive)
• 0x08 – odeslat požadavek v režimu klienta (Client)
Jako NTP u nás nejlépe použít tik.cesnet.cz
Presny zpusob nastaveni (podle me presnejsi)
Configuring the Windows Time service to use an external time source
To configure an internal time server to synchronize with an external time source, follow these steps:
1. Change the server type to NTP. To do this, follow these steps:
1. Click Start, click Run, type regedit, and then click OK.
2. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
3. In the right pane, right-click Type, and then click Modify.
4. In Edit Value, type NTP in the Value data box, and then click OK.
2. Set AnnounceFlags? to 5. To do this, follow these steps:
1. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
2. In the right pane, right-click AnnounceFlags?, and then click Modify.
3. In Edit DWORD Value, type 5 in the Value data box, and then click OK.
3. Enable NTPServer. To do this, follow these steps:
1. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
2. In the right pane, right-click Enabled, and then click Modify.
3. In Edit DWORD Value, type 1 in the Value data box, and then click OK.
4. Specify the time sources. To do this, follow these steps:
1. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
2. In the right pane, right-click NtpServer?, and then click Modify.
3. In Edit Value, type Peers in the Value data box, and then click OK.
Note Peers is a placeholder for a space-delimited list of peers from which your computer obtains time stamps. Each DNS name that is listed must be unique. You must append ,0x1 to the end of each DNS name. If you do not append ,0x1 to the end of each DNS name, the changes made in step 5 will not take effect.
5. Select the poll interval. To do this, follow these steps:
1. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\SpecialPollInterval
2. In the right pane, right-click SpecialPollInterval?, and then click Modify.
3. In Edit DWORD Value, type TimeInSeconds? in the Value data box, and then click OK.
Note TimeInSeconds? is a placeholder for the number of seconds that you want between each poll. A recommended value is 900 Decimal. This value configures the Time Server to poll every 15 minutes.
6. Configure the time correction settings. To do this, follow these steps:
1. Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxPosPhaseCorrection
2. In the right pane, right-click MaxPosPhaseCorrection?, and then click Modify.
3. In Edit DWORD Value, click to select Decimal in the Base box.
4. In Edit DWORD Value, type TimeInSeconds? in the Value data box, and then click OK.
Note TimeInSeconds? is a placeholder for a reasonable value, such as 1 hour (3600) or 30 minutes (1800). The value that you select will depend upon the poll interval, network condition, and external time source.
5. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxNegPhaseCorrection
6. In the right pane, right-click MaxNegPhaseCorrection?, and then click Modify.
7. In Edit DWORD Value, click to select Decimal in the Base box.
8. In Edit DWORD Value, type TimeInSeconds? in the Value data box, and then click OK.
Note TimeInSeconds? is a placeholder for a reasonable value, such as 1 hour (3600) or 30 minutes (1800). The value that you select will depend upon the poll interval, network condition, and external time source.
7. Quit Registry Editor.
8. At the command prompt, type the following command to restart the Windows Time service, and then press ENTER:
net stop w32time && net start w32time
Pokud se neco nedari, mozna pomohou odkazy