= Ntp/Windows time = * Links: [[TimeSyncNTP]] , [[https://blog.foldersecurityviewer.com/how-to-configure-ntp-server-on-windows-server-2019/]] * NTP uses UDP port 123. * Enabeling ntp in windows registry {{{ Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\w32time\TimeProviders\NtpServer" -Name "Enabled" -Value 1 Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\services\W32Time\Config" -Name "AnnounceFlags" -Value 5 Restart-Service w32Time }}} * Other windows ntp/time commands {{{ w32tm /query /configuration to check and shows the NTP server configuration. w32tm /query /peers for checking the list of NTP servers configured alongside their configuration status w32tm /resync /nowait to force-synchronize time with your NTP server. w32tm /query /source to show the source of the time. w32tm /query /status to reveal NTP time service status. }}} * Looking at accuracy of time {{{ w32tm /stripchart /computer: }}}