Home > Scripts > Script to Configure Windows NTP Time Servers

Script to Configure Windows NTP Time Servers

Here is a script to configure the NTP time server list on Windows servers. You can use the script to set the NTP time servers on domain controllers.

 

Windows Server 2008 NTP server and Windows 2008 R2 NTP server configuration:

:: Windows 2008 Server

net stop w32time

:: Configure time servers after the /manualpeerlist switch
w32tm /config /syncfromflags:manual /manualpeerlist:time.windows.com,time-a.nist.gov,time-b.nist.gov
w32tm /config /reliable:yes

net start w32time
w32tm /query /configuration

 

Windows 2003 Server NTP server configuration:

:: Windows 2003 Server

net stop w32time

:: Configure time servers after the /manualpeerlist switch
w32tm /config /manualpeerlist:time.windows.com,time-a.nist.gov,time-b.nist.gov /syncfromflags:MANUAL /reliable:yes
w32tm /config /update

net start w32time
w32tm /resync

 

These scripts have been tested and are fully functional on Windows Server 2008, Windows Server 2008 R2 and Windows 2003 Server. They are provided with no guarantee and I assume no responsibility for the use or misuse of these scripts or any issues resulting from their use.

Advertisements
  1. June 17, 2013 at 2:23 am

    Wonderful beat ! I wish to apprentice at the same time as you amend your web site, how could i subscribe for a blog
    web site? The account helped me a acceptable deal.

    I had been tiny bit acquainted of this your broadcast offered shiny clear
    idea

  2. July 14, 2013 at 5:13 am

    Hello there, just became alert to your blog through Google, and found that it is really informative.
    I’m going to watch out for brussels. I’ll be grateful
    if you continue this in future. Lots of people will be benefited
    from your writing. Cheers!

  3. April 21, 2014 at 3:02 am

    Your style is very unique in comparison to other
    perople I have read stuff from. I appreciate you for posting
    when you have the opportunity. Guess I will just bookmark this page.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: