Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active February 23, 2018 07:54
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 guitarrapc/fe3114bc8c51fa5dd33ff38a9803c783 to your computer and use it in GitHub Desktop.
Save guitarrapc/fe3114bc8c51fa5dd33ff38a9803c783 to your computer and use it in GitHub Desktop.
tzutil /s "Tokyo Standard Time" & reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f & net stop w32time & w32tm /config /syncfromflags:manual /manualpeerlist:"169.254.169.123" & w32tm /config /reliable:yes & net start w32time
tzutil /s "Tokyo Standard Time"
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f
net stop w32time
w32tm /config /syncfromflags:manual /manualpeerlist:"169.254.169.123"
w32tm /config /reliable:yes
net start w32time
Start-Process cmd.exe -ArgumentList '/C tzutil /s "Tokyo Standard Time" & reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f & net stop w32time & w32tm /config /syncfromflags:manual /manualpeerlist:"169.254.169.123" & w32tm /config /reliable:yes & net startw32time' -Wait
<powershell>
Start-Process cmd.exe -ArgumentList '/C tzutil /s "Tokyo Standard Time" & reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f & net stop w32time & w32tm /config /syncfromflags:manual /manualpeerlist:"169.254.169.123" & w32tm /config /reliable:yes & net startw32time' -Wait
</powershell>
<persist>true</persist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment