]> apps.delaporte.us Git - dotfiles.git/commitdiff
Setup NTP
authorEdward Delaporte <delaport@illinois.edu>
Thu, 18 Feb 2021 15:16:47 +0000 (09:16 -0600)
committerEdward Delaporte <delaport@illinois.edu>
Thu, 18 Feb 2021 15:16:47 +0000 (09:16 -0600)
setup/ntp.ps1 [new file with mode: 0644]

diff --git a/setup/ntp.ps1 b/setup/ntp.ps1
new file mode 100644 (file)
index 0000000..ec7ed94
--- /dev/null
@@ -0,0 +1,9 @@
+w32tm /query /status
+
+net stop w32time
+w32tm /config /syncfromflags:manual /manualpeerlist:"0.it.pool.ntp.org 1.it.pool.ntp.org 2.it.pool.ntp.org 3.it.pool.ntp.org"
+net start w32time
+w32tm /config /update
+w32tm /resync /rediscover
+
+w32tm /query /status