Could we help you? Please click the banners. We are young and desperately need the money
The goal: Automatically synchronize the time of a Microsoft Windows 2008 (R2) server via NTP with one or more online NTP servers.
This CMD batchfile activate_win32time_service_for_windows_servers.cmd (right click and save as a local file with the extension '.cmd' -> Execute as Administrator) automatically configures the Windows (Server 2008 R2) NTP service to use a list of online NTP servers for synchronizing its local time.
This is done by executing the following lines of code on a command shell:
@echo off echo This script activates the automatic Timesync via NTP in Windows Server Systems echo. w32tm /config /update /manualpeerlist:"0.pool.ntp.org,0x8 1.pool.ntp.org,0x8 2.pool.ntp.org,0x8 3.pool.ntp.org,0x8" /syncfromflags:MANUAL net stop w32time net start w32time w32tm /resync