你可以做一個批次檔(xxx.bat)
裡面就寫上
<pre class="c" name="code"> net time \\<伺服器名> /set /yes
<伺服器名>-->就看你是要跟那一台做同步,就寫上那一台的電腦名稱
然後在排程裡做好排程,讓它自動去執行就行啦..
http://home.mnet-online.de/horst.muc/wrem.htm#timesync TimeSync gets the current time from a NIST server, and adjusts the PC clock if necessary. Accuracy is usually within a second. Time and date are displayed according to the user's regional settings.
TimeSync will try alternative servers, in case the time cannot be obtained from the preferred server.
Option /auto is provided to run TimeSync from the StartUp folder. In this mode the TimeSync window will not show if the clock offset is under a given minimum.
Settings (click on arrow):
* Minimum clock offset for adjustment (default 2 seconds)
* Minimum clock offset for notification in /auto mode (default 3 seconds)
* Time check delay in /auto mode
Several language files are available.
加在電腦開機後"啟動"下 自動對時試試
若是 WIN 7(2008R2)以前的版本,也可以用 :
(1) NET TIME /SETSNTP:<IP/FQDN/URL> 『您第一台的DC』
(2) NET STOP "windows time"
(3) NET START "windows time"
步驟 2&3 可合併到「控制台」的「服務」裡面去重新啟動 windows time
若是 WIN 7(2008R2) ,就只能用上面的方法囉..
另外,應該是可以不用排程執行它,因為你做過一次後,windows會每隔一段時間自動再同步,若同步成功的話,下次同步的間隔時間會拉長,不成功會再試,這些過程在事件檢視器內都看得到!