Skip to content

sugigu/SyncTimeByNTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

SyncTimeByNTP

PowerShell Platform License

Features

Use pool.ntp.org, they will select best ntp server

Requirements

  • Windows 10 / Windows 11
  • PowerShell 5.1 or PowerShell 7
  • Administrator privileges

Usage

Run the script as Administrator:

.\RandomNtpAndSync.ps1

Or configure it to run automatically using Windows Task Scheduler.

Recommended settings:

  • Trigger: At startup or At logon
  • Run with highest privileges

Example Output

Selected NTP: pool.ntp.org

The command completed successfully.

Sending resync command to local computer...
The command completed successfully.

Source: pool.ntp.org
Last Successful Sync Time: 2026-06-25 20:38:42

License

MIT License

About

Randomly selects a public NTP server and synchronizes Windows Time Service (w32time).

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors