Command to change NTP on Windows Server (and Time zone)

Problem

Since Windows Server 2016 until now, with Windows Server 2022: if you want to change Time Server, you will see that the area is grayed out …

Solution

The solution is to inject the new Time server (with command line):

Open the command line (depends on the operating system used) Click Start > Windows System > Command Prompt (right click and open with More > Run as administrator).

Copy and paste this command and if necessary modify it

w32tm /config /manualpeerlist:be.pool.ntp.org /syncfromflags:manual /reliable:yes /update

In this command, we’ll change the NTP to be.pool.ntp.org

More explanation about command w32tm

https://learn.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings?tabs=config

And to change to the Brussels, Copenhagen, Madrid, Paris time zone

C:\>tzutil /s "Romance Standard Time"

More explantation about this

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur la façon dont les données de vos commentaires sont traitées.