Windows Server 2012 R2中默认没有时间同步,需要手动开启NTP Client服务。如果是在域环境下,只需要在域控上开启NTP Client服务,即可全域所有机器同步时间。
1、使用gpedit.msc打开组策略管理器,在“计算机配置–>管理模板–>系统–>Windows 时间服务–>时间提供程序”中启用“配置 Windows NTP 客户端”和“启用 Windows NTP 客户端”:

在Widnows Server 2012 R2上启用NTP客户端1
2、在“配置 Windows NTP 客户端”中,选择“已启用”,然后将NTP服务器IP地址或域名填入“NtpServer项”,注意0x9或0x1必须要有(默认值time.windows.com,0x9);在“类型”项中选则“NTP”:

在Widnows Server 2012 R2上启用NTP客户端2
其中,根据0x9还是0x1有一篇文章(https://blogs.msdn.microsoft.com/w32time/2008/02/26/configuring-the-time-service-ntpserver-and-specialpollinterval)中提到:
0x01 SpecialInterval
0x02 UseAsFallbackOnly
0x04 SymmatricActive
0x08 Client
0x1+0x8=0x9
3、在“启用 Windows NTP 客户端”中选择“已启用”:

在Widnows Server 2012 R2上启用NTP客户端3
4、执行gpupdate /force命令更新组策略;
5、检查W32Time服务是否启动,启动类型为“自动启动”:

在Widnows Server 2012 R2上启用NTP客户端4
6、我们可以通过如下的命令查看当前时间服务器设置及Windows Time服务运行情况:
1 2 |
w32tm /query /peers w32tm /query /status |

在Widnows Server 2012 R2上启用NTP客户端5
转载时请保留出处,违法转载追究到底:进城务工人员小梅 » Windows Server 2012 R2开启NTP客户端