Windows 設定時間同步

2022-08-23 02:30:18 字數 800 閱讀 7904

1、windows  server 2008 r2

w32tm /config /manualpeerlist:ntp.fudan.edu.cn,0x8 /syncfromflags:manual

net stop w32time

net start w32time

w32tm /resync

4條命令執行完後,時間會馬上同步

2、windows xp/2000/2003

使用ntp協議可以讓你的計算機自動與伺服器上的時間同步。從而保持最準確的時間。中國國家授時中心的ip位址是:210.72.145.44。在 windows xp/2000/2003 可下使用以下命令設定計算機的時間同步:

在桌面右下角的系統時間上雙擊->internet時間->選中「自動與internet時間伺服器同步」->在「伺服器」框裡輸入一國家授時中心的ip:210.72.145.44。點一下「立即更新」就ok了!比系統自帶的快多了……

或者: 在控制面板,管理工具,服務中找到 windows time,設定啟動型別為自動,再按下啟動按鈕。在 dos 命令列下讓 windows 使用國家授時中心的時間伺服器:net time /setsntp:210.72.145.44

要想立刻與時間伺服器同步需要重啟時間服務,相應的命令是:

net stop w32time

net start w32time

以後你的機器就會有乙個準確的時間。

附:linux環境

ntpdate 210.72.145.44

加入到cron中可定時對時。

加入ntpd中可更精確對時。

Windows 時間同步

讓系統時間更準確 引用 http ruanqizhen.spaces.live.com blog cns 5852d4f797c53fb6 1213.entry 使用ntp協議可以讓你的計算機自動與伺服器上的時間同步。從而保持最準確的時間。在 windows xp 2000 可下使用以下命令設定計算...

windows時間同步

檢視ntp伺服器時間 w32tm stripchart computer 10.36.20.18 檢查ntp和客戶端的時間差異 w32tm stripchart computer time.windows.com samples 5 取樣的次數 dataonly w32tm stripchart c...

Windows時間同步

1.配置pdc與外部時間源同步 修改登錄檔 hkey local machine system currentcontrolset services w32time parameters,配置ntpserver值為 time.windows.com 配置預設同步週期 hkey local machi...