How to Setup a Windows 2008 R2 SNTP/NTP Server

Gee, setting up an SNTP/NTP server in Windows is not intuitive.

The good news is: When configured correctly, you can use the Windows Time (W32Time) service as an SNTP/NTP server for both windows and non-windows SNTP/NTP clients.

Here's how to do it:

  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry entry:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\

  3. In the right pane, right-click AnnounceFlags, and then click Modify.
  4. In the Edit DWORD Value dialog box, under Value data, type 5, and then click OK.
  5. Enable NTPServer.
    1. Locate and then click the following registry subkey:

      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
                                                      Services\W32Time\TimeProviders\NtpServer\

    2. In the right pane, right-click Enabled, and then click Modify.
    3. In the Edit DWORD Value dialog box, type 1 under Value data, and then click OK.
  6. Exit Registry Editor.
  7. At the command prompt, type the following command to restart the Windows Time service, and then press ENTER:

    net stop w32time && net start w32time

This should get you setup with minimal registry hack impact.

Tips

  • Make sure W32Time is set to Automatic startup mode.
  • Make sure UDP 123 is allowed through your firewall.
  • Use this InternetTime program to help you debug connectivity to your SNTP/NTP server.

Hope that helps,
Brian Chavez
15 Comments Filed Under [ Tips & Tricks ]

Comments

# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar Hi, why do you not just use the "net time /setsntp:servername" command to enter the new SNTP server?

Bye
Michel
Left by Michel on 2/26/2010 11:45 AM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar Worked beautifully! Thanks for the great post with quick and clear instructions.
Left by EvilEmuofDoom on 2/27/2010 12:20 PM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar @Michel

Because this command isn't available anymore in Windows 2008 R2?
Left by verypsb on 3/4/2010 10:08 PM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar More info: How to configure an authoritative time server in Windows Server
http://support.microsoft.com/kb/816042
Left by verypsb on 3/4/2010 10:18 PM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar How can i make sure the process will start automatically on reboot ?
Left by Martin on 7/13/2010 4:47 AM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar Works great! Thanks for sharing.
Left by Jeroen on 2/22/2011 5:20 AM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar Thanks Michel, works fine in Windows 2008.
Left by Jim Ponder on 3/25/2011 8:25 AM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar Thank you for this simple guide.
Left by Daniel Wolf on 4/1/2011 8:44 AM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar Hi, I'm finding it difficult to sync DC having all FSMO roles with all the time providers, it always shows it points to the local when I run w32tm /query /status

Any help/?
Left by Hussain on 7/4/2011 2:19 AM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar Thanks mate!
Left by Botha Thiart on 8/3/2011 11:40 PM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar This worked Great! Thanks
Left by Shawn on 9/22/2011 4:42 AM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar Thanks a lots!
Left by TH on 9/22/2011 8:07 PM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar I've used this 'How to' about four times now. Each time its worked beautifully. Thanks a bunch!
Left by Gus on 10/2/2011 11:05 AM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar The set up was easy and works in windows. When I go over to my mac and open up terminal and type in
ntpq -p and the ip address of the ntp server, I get no response....why is that?
Left by Joe on 10/19/2011 9:19 AM
# re: How to Setup a Windows 2008 R2 SNTP/NTP Server
Gravatar Thanks. This also worked for windows 7
Left by jacky on 10/25/2011 11:02 AM

Leave Your Comment

Title*
Name*
Email (never displayed)
 (will show your gravatar)
Url
Comment*

Please add 7 and 7 and type the answer here:

Preview Your Comment.