Skip to content

Instantly share code, notes, and snippets.

@kototoibashi
Last active November 9, 2022 12:35
Show Gist options
  • Save kototoibashi/2c889c5aba09d15c915ab85e2ad2b72b to your computer and use it in GitHub Desktop.
Save kototoibashi/2c889c5aba09d15c915ab85e2ad2b72b to your computer and use it in GitHub Desktop.
windows NTP setting
sc config W32Time start=delayed-auto
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters" /v "NtpServer" /t REG_SZ /d "ntp.jst.mfeed.ad.jp,0x9" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config" /v "UpdateInterval" /t REG_DWORD /d 0x00000800 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers" /v "1" /t REG_SZ /d "ntp.jst.mfeed.ad.jp" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers" /v "2" /t REG_SZ /d "time.windows.com" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient" /v "SpecialPollInterval" /t REG_DWORD /d 0x00008000 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient" /v "SpecialPollInterval" /t REG_DWORD /d 0x00008000 /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment