How to setup NTP server in Windows using Powershell / CMD
First, stop the time service.
net stop w32time
Next, add the NTP servers. NTP Sever pool can be found here - https://www.ntppool.org
w32tm /config /syncfromflags:manual /manualpeerlist:"0.it.pool.ntp.org 1.ie.pool.ntp.org 2.ie.pool.ntp.org 3.ie.pool.ntp.org"
After you add the servers start the service,
net start w32time
update the config,
w32tm /config /update
and sync the time.
w32tm /resync /rediscover