域控制器主机时间同步

服务端

    由于Server 2008没有提供自动同步的功能,需要使用计划任务运行命令进行同步。创建一个计划任务每周日00:00:00运行,命令如下:

    w32tm /config /manualpeerlist:time.windows.com /syncfromflags:manual /reliable:yes /update

    

   客户端

    1. 查找域内PDC主机地址;

      w32tm /monitor /domain:contoso.com

    2. 手动于PDC主机时间同步;

      w32tm /resync /computer:域名(IP地址)立即同步

      或者net time /set 立即同步

    3. 可以使用如下命令检查PDC和客户端时间服务器的时间差异;

       w32tm /stripchart /computer:xxx.contoso.com /samples:5(采样的次数) /dataonly

       检查internet和客户端的时间差异;

       w32tm /stripchart /computer:time.windows.com /samples:5 /dataonly

    国家授时中心服务器的IP地址(210.72.145.44)

    time.nist.gov 

    time.windows.com

    ntp2.usno.navy.mil

设定Windows Server 2008作为时间服务器

参考链接

http://wenku.baidu.com/view/712bcecbdd88d0d232d46a25.html?from=search

与阿里云时间服务器同步时间,可以添加到任务计划里。

w32tm /config /manualpeerlist:ntp2.aliyun.com /syncfromflags:manual /reliable:yes /update 

转载链接http://www.cnblogs.com/fklin/p/5247244.html

猜你喜欢

转载自www.cnblogs.com/kellphen/p/9921399.html