Skip to content

Instantly share code, notes, and snippets.

@vulongtran
Created November 9, 2020 12:32
Show Gist options
  • Save vulongtran/64465c9a7e5a25c40460be0fb1fe738d to your computer and use it in GitHub Desktop.
Save vulongtran/64465c9a7e5a25c40460be0fb1fe738d to your computer and use it in GitHub Desktop.
timesync.ps1 script for Bolt Workshop
echo "Reconfiguring W32Time..."
w32tm /config /syncfromflags:MANUAL /manualpeerlist:"0.nl.pool.ntp.org 1.nl.pool.ntp.org" /update
echo ""
echo "Resyncing clock..."
w32tm /resync
echo ""
echo "Current time source:"
w32tm /query /source
echo ""
echo "All configured time sources:"
w32tm /query /peers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment