Windows Server: Synchronize the Time via Internet (Command Line)

If you need to synchronize the time via the Internet on a Windows Server, it is best to configure this via command line. Find below the commands you need (Open CMD as Administrator):

w32tm /config /syncfromflags:manual /manualpeerlist:"pool.ntp.org" /reliable:YES /update

w32tm /config /update

w32tm /resync

"pool.ntp.org" is just an example, of course you can use other time servers.