Created
November 9, 2020 12:32
-
-
Save vulongtran/64465c9a7e5a25c40460be0fb1fe738d to your computer and use it in GitHub Desktop.
timesync.ps1 script for Bolt Workshop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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