shell-things/Windows/time
2022-12-05 16:08:54 +02:00
..
README.md Windows/time/README.md: remove note to self 2022-12-05 16:08:54 +02:00

Configuring SNTP Servers in Windows terminal

w32tm /config /syncfromflags:manual /manualpeerlist:"time.cloudflare.com time.mikes.fi time1.mikes.fi time2.mikes.fi time3.mikes.fi 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
w32tm /resync
w32tm /query /peers
  • The list is space separated NTP servers, while I think Windows uses SNTP instead of NTP.
  • /resync may sync current time, but is also required for the GUI (Windows + I, Date & time) and following command to get aware of peers.
  • Shows where time is synced from and statistics.
    • There is also net time to sync, I am unsure of the differences while that may be blocked while the second keeps working. It may also not show all the peers, just the primary one, while w32tm is more verbose and has all of them.
  • As Windows doesnt support NTS and probably wont in near future, there is no point in listing distant foreign servers.

Variations

Variations of the timeserver setting command to be kept at hand

DNA

Including Moi

w32tm /config /syncfromflags:manual /manualpeerlist:"time.cloudflare.com ntp.dnainternet.fi time.mikes.fi time1.mikes.fi time2.mikes.fi time3.mikes.fi pool.ntp.org"

Elisa

w32tm /config /syncfromflags:manual /manualpeerlist:"time.cloudflare.com ntp1.kolumbus.fi ntp2.kolumbus.fi ntp.saunalahti.fi time.mikes.fi time1.mikes.fi time2.mikes.fi time3.mikes.fi pool.ntp.org"

Information about servers

Additional reading