Cynosure.X International LLC

:

Add Comment | Related Links | TrackBack
Related Content

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.

GetTempPathName.bat
SetNumberOfArguments.bat
SetVariableToOutput.bat

"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.

Attached File: Start NTP Server.cmd (977 B)

Chieh Cheng
Wed, 06 Nov 2013 22:23:24 +0300

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.

Chieh Cheng
Fri, 22 Nov 2013 02:54:17 +0300

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.

Chieh Cheng
Wed, 04 Mar 2015 08:38:13 +0300

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.

eGrep.class
GetTempPathName.bat
HasAdminPrivilege.cmd
RunAsAdministrator.cmd
SetNumberOfArguments.bat
SetVariableToOutput.bat

Attached File: 1 - Start NTP Server.cmd (1 KB)

Chieh Cheng
Tue, 14 Feb 2017 12:06:19 -0800

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.

Chieh Cheng
Thu, 06 Apr 2017 15:05:03 -0700

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

Title: Mac OS X Virtual Machine Has Incorrect Time
Weblog: GearHack
Excerpt: If you run Mac OS X (say, Mountain Lion) in a virtual machine (VM) on Windows 8.1, then you've probably noticed that the time is off when Mac OS X boots. If your Mac OS X virtual machine is always on the net, it's not so bad, because it will automatically sync with Apple's NTP server (time.apple.com . . .
Tracked: Thu, 07 Nov 2013 00:11:04 +0300

Title: Disabling User Account Control on Windows 8 (GPL)
Weblog: Cynosure.X International
Excerpt: Windows 8 is a real control freak. Every little thing I try to do requires administrator privilege. And even after changing "User Account Control Settings" to minimum in Control Panel, it still wants to dictate what I can and cannot do. Unlike Windows 7, where you can actually turn off UAC through t . . .
Tracked: Fri, 22 Nov 2013 02:42:00 +0300

Title: Windows 8 Startup Folder
Weblog: GearHack
Excerpt: Windows 8 has gotten rid of the "Start" menu that has been a core functionality since Windows 95 (Chicago). Instead, "Metro" has replaced the "Start" menu in Windows 8. Along with the disappearing of the "Start" menu, Windows 8 users have now lost the "Startup" folder. In the past, you simply drag w . . .
Tracked: Fri, 22 Nov 2013 02:44:17 +0300

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 8 + 9?
Click button only once, please!

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

51 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.