Created
June 2, 2023 19:47
-
-
Save manu-romero-411/8179c21aafc63ec50085d8f74166f869 to your computer and use it in GitHub Desktop.
Let Windows to use UTC time instead of RTC
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 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