通过 LAN 电缆连接的两台 Windows 7 机器之间的时间同步

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4946221/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 16:08:47  来源:igfitidea点击:

Synchronizing time between two Windows 7 machines connected with a LAN cable

windowstimep2pntp

提问by Markus Roth

I have a number laptops that run our application while connected to each other in pairs with an ethernet cable, but not connected to any external network or the internet. T

我有许多笔记本电脑运行我们的应用程序,同时使用以太网电缆成对连接,但未连接到任何外部网络或互联网。吨

I need the connected pair to synchronize their system times, but since every computer needs to be able to synch with any other computer, I can't define one computer to be a time-server and the other to be a client.

我需要连接对来同步它们的系统时间,但是由于每台计算机都需要能够与任何其他计算机同步,因此我无法将一台计算机定义为时间服务器,而将另一台定义为客户端。

Is there a way to do this with NTP? Or some other way?

有没有办法用 NTP 做到这一点?还是其他方式?

回答by darda

NET TIME is the way to go. If you do NET TIME \computername /SET it will ask you to confirm if you want to set the time. Just "assign" one of your systems to be the master.

NET TIME 是必经之路。如果您执行 NET TIME \computername /SET 它会要求您确认是否要设置时间。只需将您的一个系统“分配”为主机即可。

回答by Simon Mourier

Maybe you can use the Windows Time Service Toolswith the manualpeerlistoptions?

也许您可以使用带有手动对等列表选项的Windows 时间服务工具

See another article here: How to configure an authoritative time server in Windows Server

请参阅此处的另一篇文章:如何在 Windows Server 中配置权威时间服务器

回答by Tedd Hansen

You can use NET TIMEcommand to synchronize time between two computers.

您可以使用NET TIME命令在两台计算机之间同步时间。

net time /?
The syntax of this command is:

NET TIME

[\computername | /DOMAIN[:domainname] | /RTSDOMAIN[:domainname]] [/SET]

Windows also has a NTP server, just look in Windows Components (or wherever depending on win-version).

Windows 也有一个 NTP 服务器,只需查看 Windows 组件(或任何取决于 win 版本)。

回答by Roman Gorniy

You can use special software for synchronization, for example ClockSynchro. Network may be not connected ro internet. Contains ClockSynchroServer and CkockSynchroClient. This program is easy for install and use. http://clocksynchro.comOn Windows 7 you must run ClockSynchroClient with adminisrtrator permitions ("Run as Administrator")

您可以使用特殊软件进行同步,例如 ClockSynchro。网络可能未连接到互联网。包含 ClockSynchroServer 和 CkockSynchroClient。该程序易于安装和使用。 http://clocksynchro.com在 Windows 7 上,您必须使用管理员权限运行 ClockSynchroClient(“以管理员身份运行”)