Powershell – How to change windows time server on windows server 2012

group-policypowershellwindows-server-2012

In windows computer, system is using "time.windows.com" to sync the time. I need o modify the time server for windows user on its logon and want to enforce using group policy.

Case: we have windows server 2012, with 10 users on that domain. The system should update time of each user computer when user logon to system.

Best Answer

best practice is secure ntp on domain . For client of the domain ad give the ntp source to ad client .

To setup on the server the source use that command (for 2008+ server): w32tm /config /manualpeerlist:0.fr.pool.ntp.org

change manualpeerlist for your timezone (check ntp project : http://www.pool.ntp.org/en/use.html )