Start NTP Server (GPL)
Windows has Network Time Protocol (NTP) server built into its operating system. However, on most versions of Windows, it is disabled by default. To enable it, you have to change Windows Registry, then start the NTP server. To make your life easier, we have written a Windows batch script to enable the NTP server. The "Start NTP Server.cmd" batch script is attached below. Download it. Then every time you want to start the NTP server, just run it as administrator. This script has been tested on Windows 8 and Windows 8.1.
"Start NTP Server.cmd" takes advantage of the following batch files. They are also available on this web site. So to use "Start NTP Server.cmd", you'll have to download these other batch scripts, if you don't already have them.
"Start NTP Server.cmd" is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site. If you make changes to this batch file, please feel free to upload it back here to share it with everyone.
You can create a shortcut for this batch file, so that you can just double-click on it to run it. However, remember to change the shortcut to always "Run as administrator". Accomplish that by right clicking the on the shortcut, select "Properties", click "Advanced...", and enable "Run as administrator".
However, the shortcut won't work if you throw it in the Startup folder on Windows 8. That's because Windows 8 won't let anything in the Startup folder run automatically if it has administrator privileges... unless you disable User Account Control (UAC)... see TrackBack below.
The other way to get it to start NTP automatically on start up is to set it up in Task Manager. Be sure to set up the task with these features: 1) Run whether user is logged on or not; 2) Run with highest privileges; 3) At system startup.
Also, in your Task Scheduler task, enable "If the task fails, restart every:". Set it to "1 minute" and "Attempt to restart up to:" to "999" times.
I updated "Start NTP Server.cmd" so that it could elevate itself to administrator privilege when it is executed without the elevated privilege. This makes the script easier to use in manual or automated situations.
Download the new version below. But keep in mind that the enhancements takes advantage of the following batch files and Java classes. They are also available on this web site. So to use this new "Start NTP Server.cmd" version, you'll have to download these helper executables, if you don't already have them.
Using the updated script above, you can now start the Windows NTP server from the "Startup" folder on Windows 8 and Windows 10. See "Windows 8 Startup Folder" for location in the TrackBack section below.
Did your message disappear? Read the Forums FAQ.
Title: Mac OS X Virtual Machine Has Incorrect Time
Title: Disabling User Account Control on Windows 8 (GPL)
Title: Windows 8 Startup Folder
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
11 Users Online
Copyright © 1996 - 2017. All Rights Reserved.