Skip to content

Instantly share code, notes, and snippets.

@bao3
Forked from maxbelyanin/ntp.bat
Created June 1, 2017 06:37
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 bao3/729a3ca796d846cc277de8159f57c5dc to your computer and use it in GitHub Desktop.
Save bao3/729a3ca796d846cc277de8159f57c5dc to your computer and use it in GitHub Desktop.
Starts the Windows NTP-Server
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment