两种方案:
- Windows自带工具实现;
- 第三方NetTime工具实现;
一、NetTime
官网:http://www.timesynctool.com/
NetTime is a Simple Network Time Protocol (SNTP) client for Windows 95/98/Me/NT/2000/XP/Vista/7/8/10 and Server 2003/2008/2012/2016. (32 bit and 64 bit operating systems are both supported)
![](https://blog.claves.cn/wp-content/uploads/2022/03/image-57.png)
二、Windows 自带ntp配置
1.打开 Windows 时间服务,计算机配置/管理模板/系统/Windows 时间服务/时间提供程序,
命令:gpedit.msc
![](https://blog.claves.cn/wp-content/uploads/2022/03/image-50.png)
2.配置 Windows NTP 客户端
![](https://blog.claves.cn/wp-content/uploads/2022/03/image-51.png)
3.启用 NTP 客户端
![](https://blog.claves.cn/wp-content/uploads/2022/03/image-52.png)
4.更新组策略,命令:gpupdate /force,
![](https://blog.claves.cn/wp-content/uploads/2022/03/image-53.png)
5.检查 W32Time 服务是否为自启动,找到 Windows Time 服务,命令:services.msc
![](https://blog.claves.cn/wp-content/uploads/2022/03/image-54.png)
6.时间和日期中,设置同步地址并勾选自动同步
![](https://blog.claves.cn/wp-content/uploads/2022/03/image-55.png)