時間同步命令w32tm常用方法
查看幫助文檔
w32tm /?
查看指定計算機的當前時間
net time \192.168.1.111
查詢本機同步源
w32tm /query /source
查詢指定計算機的同步源
w32tm /query /computer:192.168.1.111 /source
配置本機的時間同步源
w32tm /config /manualpeerlist:”192.168.1.88″ /syncfromflags:manual /update
配置指定計算機的時間同步源
w32tm /config /computer:192.168.1.111 /manualpeerlist:”192.168.1.88″ /syncfromflags:manual /update
重新同步本機時間
w32tm /resync
重新同步指定計算機時間
w32tm /resync /computer:192.168.1.111 /nowait /rediscover
查詢本機同步狀態
w32tm /query /status
查詢指定計算機同步狀態
w32tm /query /computer:192.168.1.111 /status