---
title: How to Set the Timezone and Configure NTP on Windows Server
url: https://docs.vultr.com/how-to-set-the-timezone-and-configure-ntp-on-windows-server
description: Learn how to properly set the timezone and configure Network Time Protocol (NTP) on Windows Server to ensure accurate time synchronization across your network.
publish_date: 2022-05-25T00:00:00Z
last_updated: 2024-07-25T21:10:22.153803Z
header_image: https://docs.vultr.com/public/doc-assets/1316/0f6665cea696582a.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Network Time Protocol (NTP) is a highly scalable internet protocol that determines the best time information and synchronizes accurate settings on a computer system. This guide explains how to set the time zone and configure NTP on a Windows Server.

> This guide uses Windows Server 2019, but these instructions work on any machine with Server 2016 or later.

## Prerequisites

Before you begin:

* Deploy a Vultr [Windows Server]( https://www.vultr.com/servers/windows/).
* [Connect to the server](https://docs.vultr.com/how-to-connect-to-windows-server-with-rdp).

## Set the Timezone

![Windows Timezone Settings](https://docs.vultr.com/public/doc-assets/1316/6fcf4d2137075fbd.png)

1. Using the Windows Start Menu, open **Server Manager**.
2. Locate **Time zone** in the local server properties section.
3. Click the current timezone, which is **UTC Coordinated Universal Time**by default.
4. In the **Date and Time** window, click **Change time zone**.
5. Expand the **Time zone** drop-down list.
6. Select your preferred timezone. It's recommended to set it to your server location.
7. Click **OK** to save changes.
8. Click **Apply** to load changes on the server.
9. Re-open **Server Manager**, and verify the timezone change.

### Optional: Set the Timezone using PowerShell

1. From the start menu, open Windows PowerShell, or open the run dialog (Win key + R), type `powershell` in the search bar, and click OK to start PowerShell.
2. Run the following command to check the server timezone.

        PS > Get-Timezone

3. View all available timezones.

        PS> Get-Timezone -ListAvailable

    To find your target timezone, use the following command to filter by name.  

        PS> Get-Timezone -ListAvailable | Where-Object {$_.displayname -like "*US*"}

    > The command above displays all names containing the characters `US`. You can use a different string such as **London**.

4. Change your timezone.

        PS> Set-Timezone -Name "Central Standard Time"

    You can also change the timezone by ID.

        PS> Set-Timezone -Id "Central Standard Time"

## Configure NTP

In addition to setting the timezone, you can also configure Windows to use NTP to synchronize the time.

1. Open the **Run** dialog window by pressing the Windows key (WIN) + R on your keyboard.
1. In the search bar, enter `regedit` and click OK to open **Registry Editor**.
1. Expand the registry navigation tree:

    **HKEY\_LOCAL\_MACHINE -> SYSTEM -> CurrentControlSet -> Services**

1. Expand **W32Time**.
1. Click **Config**.
1. Select **AnnounceFlags**
1. Enter `5` in the **Value** data field.
1. Click **OK** to save changes.
1. In the left pane, click **Parameters**.

### Optional: Change the NTP Server

By default, Vultr uses the `time.constant.com` time server, located on our high-speed infrastructure. If you want to use a different time server, you can change the value of the `NtpServer` parameter by following these steps.

1. Double-click **NtpServer**
1. Change the value data field to your preferred value. For example, to sync with the United States NTP pool, use:

        us.pool.ntp.org

    You can find a list of NTP Pool servers at the [official website](https://support.ntp.org/bin/view/Servers/NTPPoolServers).

1. Expand **TimeProviders**.
1. Click **NtpServer**.
1. Double click **Enabled**, change the value data from `0` to `1`, and click **OK** to save changes.
1. Close the registry editor, open the start menu, and search the keyword `services`.
1. In the services window, scroll through the list, select **Windows Time**, right-click, and select **Restart** to apply NTP changes.

    ![Restart the Windows Time Service](https://docs.vultr.com/public/doc-assets/1316/5c1448ee03a8f9d8.png)

### Optional: Configure NTP Using PowerShell

If you prefer to use Powershell, you can use the following commands to configure NTP.

1. Open PowerShell with administrative privileges.
2. Check the NTP time synchronization status.

        PS> w32tm /query /status

3. Enter the following command to set the time **AnnounceFlags** to `5`.

        PS> Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\services\W32Time\Config" -Name "AnnounceFlags" -Value 5 

4. (Optional) If you want to use NTP pool servers instead of Vultr's NTP server, run the following command.

        PS> Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\w32time\Parameters" -Name "NtpServer" -Value us.pool.ntp.org

5. Enable NTP Server.

        PS> Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\w32time\TimeProviders\NtpServer" -Name "Enabled" -Value 1

6. Restart the Windows Time service.

        PS> Restart-Service w32Time

7. Test NTP synchronization.

        PS> w32tm /resync

## Next Steps

You have successfully set the timezone and configured NTP on Windows Server 2019. If you plan to have other machines on a Vultr VPC use your NTP server, allow port `123` in the Windows Server Firewall. For further information, refer to the following guides.

* [Official NTP Documentation](http://www.ntp.org/documentation.html)
* [List of database TimeZones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
* [Configure the Firewall on Windows Server 2019](https://docs.vultr.com/how-to-configure-the-firewall-on-windows-server-2019)
* [Create A Vultr Virtual Private Cloud (VPC)](https://docs.vultr.com/how-to-create-a-vultr-virtual-private-cloud-vpc)
