第一步,判断Windows Time服务是否正在运行,如果没有,则开启它。

第二步,强制同步,不知为何,往往第一次会失败,那么就多运行几次好了。


Get-Service w32time | Where {$_.status –eq 'Stopped'} |  Start-Service
W32tm /resync /force
W32tm /resync /force


参考资料

==========

https://devblogs.microsoft.com/scripting/powertip-force-time-resync-with-powershell/

https://redmondmag.com/articles/2016/01/22/powershell-to-manage-system-services.aspx

相关文章:

  • 2021-06-01
  • 2021-05-12
  • 2022-01-11
  • 2022-12-23
  • 2021-08-02
  • 2022-02-11
  • 2021-11-01
猜你喜欢
  • 2022-12-23
  • 2021-09-27
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
相关资源
相似解决方案