The internet time function is hidden, how to use the cmd command to set the time source and synchronize

environment:

Win server 2016

Problem Description:

The internet time function is hidden, how to use the cmd command to set the time source and synchronize

win10 time setting menu has internet time but
insert image description here
Win server 2016 time setting menu has no internet time
insert image description here

solution:

1. cmd input

Set Ali as the time server

w32tm /config /manualpeerlist:"ntp1.aliyun.com" /syncfromflags:manual /reliable:yes /update

insert image description here

2. Perform synchronization

w32tm /resync

Guess you like

Origin blog.csdn.net/weixin_42672685/article/details/131644766