Skip to content

Instantly share code, notes, and snippets.

@DartPower
Created December 23, 2022 09:39
Show Gist options
  • Select an option

  • Save DartPower/f66f2ca8a3278e3d0e25aa261a7ddc44 to your computer and use it in GitHub Desktop.

Select an option

Save DartPower/f66f2ca8a3278e3d0e25aa261a7ddc44 to your computer and use it in GitHub Desktop.
Win32Time fix by FlasherX from Cyberforum
@>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