Blog

SBS 2008 Time Service NTP Setup

When setting up SBS 2008, I could find very little information on the right way to set it up to sync with a NTP source.  In fact, I can very little on how to do it on Windows Server 2008 in general.  There are articles on how to do it with Windows Server 2003 and the needed registry changes (http://support.microsoft.com/kb/816042/en-us )  Those registry changes will work on W2K8 I'm 99% sure.  I wanted some verification as KB 816042 only list W2K3 in the "applies to" section but I couldn't find a W2K8 specific article.

By default, SBS 2008 uses time.windows.com which is either off or just not sync'ing correctly for one of our SBS servers.  So I needed to change it to pool.ntp.org servers and wanted to know the "SBS 2008" way to do it.  Not sure that I found it but here's what I did.   Rather than make the registry changes, I went command line and let it take care of it for me.  This has the benefit that you could write a script that took the NTP servers as parameters (which may be useful only if you're regularly setting up domains like I am).

Open a command prompt with Run as Administrator and enter the following commands.

net stop w32time
w32tm /unregister
w32tm /register
net start w32time
net time /setsntp:0.us.pool.ntp.org,1.us.pool.ntp.org,2,us.pool.ntp.org,3.us.pool.ntp.org w32tm /config /syncfromflags:MANUAL /manualpeerlist:"0.us.pool.ntp.org,0x8 1.us.pool.ntp.org,0x8 2.us.pool.ntp.org,0x8 3.us.pool.ntp.org,0x8"
net stop w32time
net start w32time
w32tm /resync /rediscover
 

Often I get an error on w32tm /unregister that "access is denied" but it seems to remove the previous entries like it should so I still do it.  Since SBS is the PDC, the time should replicate to all your domain computers as they re-sync with SBS for their time.

Hope this helps.