How to Set NTP Windows 2016
|

How to Configure NTP Server in Windows Server 2016 – Complete Guide

We don’t always have to set up the NTP, but we had an old domain where that we brought in a new primary domain controller. This new primary domain controller was not properly configured for NTP, so our time on the entire network was about 1 hour behind due to daylight savings time and also being out of sync with a real NTP server. We work in a highly restricted network, so we don’t have Internet available to all the servers.

Setting up and configuring an NTP (Network Time Protocol) server in Windows Server 2016 is essential for maintaining accurate time synchronization across your network. This guide provides step-by-step instructions for configuring NTP on both domain controllers and standalone Windows Server 2016 systems.

Whether you need to set up a new NTP server, change existing NTP settings, or troubleshoot time synchronization issues, these PowerShell commands will help you manage your Windows time service effectively.

Prerequisites for Configuring NTP Server on Windows Server 2016

Before configuring your NTP server, ensure you have:

  • Administrator access to your Windows Server 2016 system
  • PowerShell access
  • Network connectivity to external NTP sources (if applicable)
  • Firewall rules allowing UDP port 123 traffic (for NTP communication)

Identifying the Domain Controller Role for NTP Configuration

In Active Directory environments, it’s important to identify which domain controller is responsible for time synchronization before making changes.

Step 1: Query Domain Controller Roles

Run this command to determine which server holds the PDC Emulator role (the default time authority in a domain):

This command displays all FSMO roles, including the PDC Emulator that should be your primary time source.

Using Powershell to query the fsmo domain roles
Using PowerShell to Query the Domain Controller Roles

Configuring NTP Server on Windows Server 2016 Domain Controller

For domain controllers with internet access, follow these steps to configure external NTP sources.

Step 2: Set External NTP Server Sources

For multiple NTP sources (recommended for redundancy):

Step 3: Restart the Windows Time Service

Using PowerShell:

Alternative command-line method:

Step 4: Force Time Resynchronization

The Ultimate Managed Hosting Platform
Set NTP Server Windows 2016 - Resync NTP
Resyncing the Windows Time Service to the NTP Server

Configuring NTP for Air-Gapped Networks

For disconnected or air-gapped networks without internet access, you’ll need a different approach:

  1. Designate one server as the authoritative time source
  2. Configure other servers to sync from this source
  3. Consider using a hardware time source if high precision is required

On the designated primary time server:

Verifying NTP Server Configuration

Step 5: Check NTP Status and Configuration

Verify your configuration with:

Set NTP Server Windows 2016 - Query NTP Status
Query the Status of the NTP Server in PowerShell

This displays current synchronization status, source, and last sync time.

Troubleshooting Windows Time Service Issues

If you experience problems with the Windows Time service, try these steps:

Step 6: Reset the Windows Time Service

This completely resets the service by unregistering and re-registering it with the system.

Common Issues and Solutions

Issue

Possible Solution

Time drifting

Check hardware clock or increase sync frequency

Failed synchronization

Verify network connectivity to NTP sources

“The computer did not resync” error

Check firewall rules for UDP 123

Inconsistent time across domain

Verify PDC Emulator is properly configured

Configuring NTP Clients in a Domain

For domain members (not the PDC Emulator), configure them to sync from the domain hierarchy:

This ensures all domain computers maintain consistent time by following the domain’s time hierarchy.

Changing NTP Server Settings

To change NTP server sources on an already configured system:

  1. Stop the Windows Time service
  2. Set the new NTP source
  3. Restart the service and force resynchronization

For example:

The Ultimate Managed Hosting Platform

NTP Command Reference Table

Purpose

PowerShell/Command Line

Description

Query domain controller roles

Identifies which DC is in charge of time

Set NTP server

Configures external NTP source

Restart time service

Applies configuration changes

One-line restart

Quick restart of Windows Time service

Resync time

Forces time synchronization

Check status

Verify NTP configuration status

Reset time service

Multiple commands for unregistering/registering

Fixes Windows Time service issues

Configure client sync

Sets clients to sync from domain hierarchy

Frequently Asked Questions

How do I check which NTP server my Windows Server 2016 is using?

You can check your current NTP configuration using w32tm /query /configuration in PowerShell.

How do I change the NTP server on my Windows Server 2016 domain controller?

Use w32tm /config /manualpeerlist:new.ntp.server /syncfromflags:MANUAL /reliable:yes /update followed by restarting the time service.

Why is my Windows Server 2016 time out of sync even with NTP configured?

The most common causes include firewall issues blocking UDP port 123, incorrect NTP hierarchy configuration, or hardware clock drift. Check your Windows Time service status and event logs.

Should I use internal or external NTP servers for my domain?

For most organizations, the primary domain controller should sync with reliable external NTP sources, while other domain members should sync from the domain hierarchy.

Conclusion

Proper NTP configuration is crucial for maintaining accurate time across your Windows Server environment. By following this guide, you can ensure your Windows Server 2016 systems stay properly synchronized, avoiding authentication issues and ensuring accurate timestamps for logs and transactions.

Remember to periodically verify your NTP configuration, especially after major system changes or if you notice time synchronization issues.

Need help with other Windows Server configurations? Check out our related guides:

Have questions about configuring NTP on Windows Server? Leave a comment below!

Similar Posts