最近有发现有域环境的时间不同步,而且在巡检活动目录的时候会提示“林中的主域控制器(PDC)仿真器操作主机未配置为正确同步来自有效时间源的时间”

那么接下来就来指定下活动目录的时间源吧。

网上看过说用中国国家授时中心的时间服务器ip地址210.72.145.44,但是又查到说这个地址已经不能用了,不能同步,好吧!所以另外找了个地址cn.pool.ntp.org,目前用着还行。

设置很简单

管理员身份运行CMD

w32tm /config /manualpeerlist:"cn.pool.ntp.org" /syncfromflags:manual /reliable:yes /update

net stop w32time & net start w32time

w32tm /resync

p_w_picpath

完成后,查看下设置 W32tm /query /status

p_w_picpath

然后看看本机时间和时间源的时间差。cn.pool.ntp.org的IP地址是变化的,有时候会链接不上

w32tm /stripchart /computer:cn.pool.ntp.org /samples:30 /dataonly

p_w_picpath

p_w_picpath

完成后,修改组策略把域中的其余服务器的事件源指定到主域控中

在其余服务器查看 w32tm /query /status

p_w_picpath

 

如果想恢复原来的设置,重新注册即可恢复原来默认设置

net stop w32time

w32tm /unregister

w32tm /register

net start w32time