#Windows Server time setup, used largely on domain controllers and non-domain joined standalone servers. Domain joined computers should sync from the domain controllers. #Both Registry and application setup done by this script. Push-Location Set-Location HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers Set-ItemProperty . 0 "0.pool.ntp.org" Set-ItemProperty . 1 "1.pool.ntp.org" Set-ItemProperty . 2 "2.pool.ntp.org" Set-ItemProperty . 3 "3.pool.ntp.org" Set-ItemProperty . "(Default)" "0" Set-Location HKLM:\SYSTEM\CurrentControlSet\services\W32Time\Parameters Set-ItemProperty . NtpServer "0.pool.ntp.org" Pop-Location w32tm.exe /config /manualpeerlist:"0.us.pool.ntp.org 1.us.pool.ntp.org 2.us.pool.ntp.org 3.us.pool.ntp.org" /syncfromflags:manual /reliable:YES /update w32tm.exe /config /update Stop-Service w32time Start-Service w32time