Last active
February 23, 2018 07:54
-
-
Save guitarrapc/fe3114bc8c51fa5dd33ff38a9803c783 to your computer and use it in GitHub Desktop.
aws ec2 timezone and ntp service (AWS Provided) : https://aws.amazon.com/about-aws/whats-new/2017/11/introducing-the-amazon-time-sync-service/?nc1=h_ls
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
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 |
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
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 |
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
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 |
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
<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