时间同步命令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

检查各域控主机的时间偏移
w32tm /monitor /domain:testdomain.com

posted on 2022-02-05 10:31  越野兔  阅读(6656)  评论(0编辑  收藏  举报

导航