域控制器主机时间同步


服务端

    由于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 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM