編碼的世界 / 優質文選 / 財富

windows 下同步時間的幾種方法


2021年10月11日
-   

windows 立即同步時間 w32tm /resync 3、顯示目前服務器指定的外部時間源 w32tm /query /source
2.設置同步服務器來源 w32tm /config /manualpeerlist:”10.2.22.254” /syncfromflags:manual /reliable:yes /update w32tm /config /manualpeerlist:”time.pool.aliyun.com” /syncfromflags:manual /reliable:yes /update 顯示本地時間與目的時間的時間差 w32tm /stripchart /computer: time.pool.aliyun.com /samples:30 /dataonly
time.pool.aliyun.com 3、顯示目前服務器指定的外部時間源 w32tm /query /source
1、指定外部時間源並與之同步 w32tm /config /manualpeerlist:”210.72.145.44” /syncfromflags:manual /reliable:yes /update (需要管理員權限執行) /manualpeerlist表示外部時間源服務器列表,多個服務器之間可用空格分隔,210.72.145.44 是中國國家授時中心的時間服務器ip地址 /syncfromflags:manual表示與指定的外部時間源服務器列表中的服務器進行同步 /reliable:yes設置此計算機是一個可靠的時間源。此設置只對域控制器有意義。 /update向時間服務發出配置已更改的通知,使更改生效 2、顯示本地時間與目的時間的時間差 w32tm /stripchart /computer: time.pool.aliyun.com /samples:30 /dataonly 3、顯示目前服務器指定的外部時間源 w32tm /query /source 4、恢複Windows Time Service的預設值 net stop w32time w32tm /unregister w32tm /register net start w32time 在域環境中,只需設置根域控制器的外部時間源即可,其它服務器在添加進域中時將自動設置與域控制器時間同步。 改設置可解決域控制器的時間同步問題 如:Time-Service EventID:36 5. 同步時間 w32tm /resync

熱門文章