How to make Windows as NTP Server?
Making Windows as a NTP Server
While installing Cisco Unified Communications Manager, Cisco Unity Connection, Cisco Unified Contact Center Express, Cisco MediaSense etc, you need to have a valid NTP Server internally or may point it to an external network. Most of the organization will have internal NTP Server as Cisco recommends to use a NTP Server with a Stratum-1, Stratum-2 or Stratum-3.
While installing Cisco UC Applications (Publisher) server, you need to point the Publisher to a NTP Server. If a valid NTP Server is found or NTP Service is running in the IOS or Linux based machine, then the installation will proceed else the installation would not allow you to continue. All the UC Applications (Subscriber) servers in the network will automatically synchronize the NTP Time from the Publisher server. During the installation, each subscriber is automatically configured to point to a NTP Server running on Publisher.
When it comes to the lab and you don’t want to use a router to act as a NTP Server, then Windows machine would be a good option. You can make few modifications in the registry and the Windows Machine will act as a NTP Server.
How to make Windows Machine as NTP Server?
[Option 1 – By Following Detailed steps]
You can make a Windows Machine as NTP Server either by following the detailed steps manually by adding/modifying the values to the registry one by one or else you can directly add/update the registry values by importing the registry file.
- Go to Run>
- Type “services.msc” without quotes
- Locate the service “Windows Time” and stop the service
- Go to Run >
- Type “regedit” without quotes
- Expand HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > W32Time > Parameters >
(In case if you don’t find ‘LocalNTP’ DWORD on the right side, you can create it)
- Right-click > New > DWORD and name it LocalNTP (case sensitive)
- Double-click “LocalNTP” DWORD and modify it’s Hexadecimal value data to “1”.
- Expand HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > W32Time > Config
- On the right side pane window, you will find a DWORD named as “AnnounceFlags“, modify the Hexadecimal value data to “5“.
- Expand HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > W32Time > TimeProviders > NtpServer
- On the right side pane window, you will find a DWORD named as “Enabled”, modify the Hexadecimal value data to “1”.
- Go to Run>
- Type “Services.msc” without quotes and hit enter
- Locate the service “Windows Time” and start the service
[Option 2 – By Running NTPEnable.exe file]
If you do not want to follow the above steps and still would like to make a Windows Machine as NTP Server, follow the below steps:
- Download NTPEnable.exe file from the URL – https://www.thecollabguru.com/downloads/NTPEnable.exe
- Right Click NTPEnable.exe and Run as Administrator
- Now you will be able to see message on Command Prompt as follows:
The Windows Time service is stopping.
The Windows Time service was stopped successfully.
The Windows Time service is starting.
The Windows Time service was started successfully.
- And finally you will see the message “Command executed successfully. Please verify“.
- Once you see the message “Command executed successfully. Please verify“, kindly verify that Windows machine is working as a NTP Server?
Note: It is important that you run the file “NTPEnable.exe” as Administrator else the machine will not be enabled to work as a NTP Server.