Created
August 18, 2015 13:14
-
-
Save maxbelyanin/9a5a98638a17e3a31ad0 to your computer and use it in GitHub Desktop.
Starts the Windows NTP-Server
This file contains hidden or 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
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 |
Author
maxbelyanin
commented
Aug 18, 2015
- Run as administrator
- Check the success: w32tm /stripchart /computer:192.168.0.X /dataonly /samples:5
- If failed (the 'net stop w32time' returns error), just run service 'net start w32time'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment