公司的十台windows server 2003 同步时间.
写简单的bat 文件.,其中IP2 和IP3是ntp server的ip地址.
@echo off
echo 'stat sync time with NTP Server'
net time /setsntp:"IP2 IP3"
net stop w32time
net start w32time
w32tm /resync
echo 'done'
pause
转载于:https://blog.51cto.com/wing1225/707385