windows 同步其他windows时间 w32time

本文介绍如何在Windows系统中配置w32time服务作为NTP时间服务器,并提供了详细的步骤来开启服务器模式及客户端模式。通过修改注册表键值并重启服务,可以实现与其他时间服务器的同步。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、介绍

   在windows平台下有w32time服务,w32time服务有两种模式:服务器模式、客户端模式,默认只开启客户端模式,用于和其他的时间服务器同步。作为时间服务器,需要开启服务器模式。

二、服务器设置

   1. 修改注册表

    键值HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer内的「Enabled」设定为1,打开NTP服务器功能   。 

    键值HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags设定为5.该设定强制主机将它自身宣布为可靠的时间源。 

  2. 重启Win32Time服务

    net stop w32Time 

    net start W32Time

三、客户端设置

w32tm /register      
net stop w32time     
net start w32time    
w32tm /config /manualpeerlist:192.10.10.1 /syncfromflags:manual /update 
w32tm /resync   

w32tm /register      注册为系统服务
net stop w32time     停止服务
net start w32time    启动服务
w32tm /config /manualpeerlist:192.10.10.1 /syncfromflags:manual /update     定义同步IP
w32tm /resync        同步

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值