Skip to content

Instantly share code, notes, and snippets.

@manu-romero-411
Created June 2, 2023 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manu-romero-411/8179c21aafc63ec50085d8f74166f869 to your computer and use it in GitHub Desktop.
Save manu-romero-411/8179c21aafc63ec50085d8f74166f869 to your computer and use it in GitHub Desktop.
Let Windows to use UTC time instead of RTC
@echo off
net session >nul 2>&1
if %errorLevel% == 0 (
goto program
) else (
echo You must run this script as Administrator.
pause
exit 1
)
:program
reg add HKLM\System\CurrentControlSet\Control\TimeZoneInformation /t REG_DWORD /v RealTimeIsUniversal /d 1
sc config w32time start= disabled
echo Done. Reboot to apply.
pause
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment