Skip to content

Instantly share code, notes, and snippets.

View johnnyfortner's full-sized avatar
😄

johnnyfortner

😄
View GitHub Profile
@johnnyfortner
johnnyfortner / timeSync.bat
Last active January 21, 2022 04:30 — forked from thedom85/timeSync.bat
forked from thedom85 to sync time every 60s on computer with damaged cmos
@echo off & @setlocal enableextensions
:loop
@echo =========================
@echo Turn off the time service
net stop w32time
@echo ======================================================================
@echo Set the SNTP (Simple Network Time Protocol) source for the time server
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"
@echo =============================================
@echo ... and then turn on the time service back on