Created
December 23, 2022 09:39
-
-
Save DartPower/f66f2ca8a3278e3d0e25aa261a7ddc44 to your computer and use it in GitHub Desktop.
Win32Time fix by FlasherX from Cyberforum
This file contains hidden or 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
| @>nul 2>&1( | |
| sc triggerinfo w32time delete | |
| sc config W32Time start= demand | |
| sc query W32Time|find /c ": 4"||net start W32Time | |
| reg add HKLM\System\CurrentControlSet\Services\W32Time\Parameters /f /v Type /d NTP | |
| if exist %WinDir%\system32\w32tm.exe ( | |
| w32tm /config /manualpeerlist:"time.windows.com 1.ru.pool.ntp.org",0x9 /syncfromflags:MANUAL /update | |
| w32tm /config /reliable:yes /update | |
| w32tm /resync /force | |
| ) else ( | |
| net time /setsntp:"time.windows.com 1.ru.pool.ntp.org",0x9 | |
| net time /rtsdomain:"time.windows.com 1.ru.pool.ntp.org",0x9 | |
| net stop W32Time && net start W32Time | |
| ) | |
| net stop W32Time) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment