有关时区自动更新的

在注册表以下路径,start键值3,4表示自动/不自动更新

计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tzautoupdate

有关时区更改的

cmd下,有个tzutil可用于更改时区

C# 关于时区的操作

遗留问题

直接去修改注册表,是不会触发Windows的时区同步的(如果Windows本身可以自动同步),要加一下cmd(管理员权限)命令

"sc config tzautoupdate start= demand",
"net stop tzautoupdate",
"net start tzautoupdate",
"ping 127.1 -n 1 >nul",
"w32tm /resync /nowait");

 

相关文章:

  • 2022-03-02
  • 2022-01-31
  • 2022-12-23
  • 2021-10-02
  • 2021-07-14
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-02
  • 2021-09-26
  • 2021-10-18
  • 2021-09-23
  • 2021-06-11
  • 2022-12-23
相关资源
相似解决方案