从Vista命令提示符将时钟与Internet时间服务器同步

If you have an issue with your system clock losing time, you’ve probably had to go and re-sync your clock with the internet time servers. The problem is that there are just way too many clicks required to get to the right screen, so the command line is much simpler.

如果您的系统时钟丢失时间有问题,则可能必须将时钟与Internet时间服务器重新同步。 问题在于,要获得正确的屏幕,单击的方式太多了,因此命令行要简单得多。

Note that you can partially solve this issue by changing the time server you are using or increasing the intervals between time checks, but there are some instances where you’ll just want to quickly sync the time manually.

请注意,您可以通过更改正在使用的时间服务器或增加时间检查之间的间隔来部分解决此问题,但是在某些情况下,您只是想手动快速同步时间。

Sync Clock the Slow GUI Way

以慢GUI方式同步时钟

First you’ll have to right-click on the clock and choose “Adjust Date/Time”

首先,您必须右键单击时钟,然后选择“调整日期/时间”

从Vista命令提示符将时钟与Internet时间服务器同步

Then you select the Internet Time tab, and click the Change Settings button…

然后,选择“ Internet时间”选项卡,然后单击“更改设置”按钮…

从Vista命令提示符将时钟与Internet时间服务器同步

After the UAC prompt you can finally click the “Update now” button to tell the computer to resync.

在UAC提示后,您最终可以单击“立即更新”按钮,通知计算机重新同步。

从Vista命令提示符将时钟与Internet时间服务器同步

That’s a lot of steps… but check out how simple it is from the command line.

这是很多步骤……但是从命令行中检查它有多简单。

Sync Clock from Command Line

从命令行同步时钟

Simply open an administrative mode command prompt (right-click, Run as administrator), and then type in the following command:

只需打开管理模式命令提示符(右键单击,以管理员身份运行),然后键入以下命令:

w32tm /resync

w32tm /重新同步

从Vista命令提示符将时钟与Internet时间服务器同步

And now your clock is sync’d. If you want proof, you could check the time settings panel again.

现在您的时钟已同步。 如果需要证明,可以再次检查时间设置面板。

从Vista命令提示符将时钟与Internet时间服务器同步

Now that just seems easier to me.

现在,这对我来说似乎更容易。

翻译自: https://www.howtogeek.com/howto/windows-vista/sync-your-clock-with-internet-time-servers-from-the-vista-command-prompt/