Skip to content

Instantly share code, notes, and snippets.

@maxbelyanin
Created August 18, 2015 13:14
Show Gist options
  • Select an option

  • Save maxbelyanin/9a5a98638a17e3a31ad0 to your computer and use it in GitHub Desktop.

Select an option

Save maxbelyanin/9a5a98638a17e3a31ad0 to your computer and use it in GitHub Desktop.

Revisions

  1. maxbelyanin created this gist Aug 18, 2015.
    3 changes: 3 additions & 0 deletions ntp.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config" /v "AnnounceFlags" /t REG_DWORD /d 5 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer" /v "Enabled" /t REG_DWORD /d 1 /f
    net stop w32time && net start w32time