window时间同步

本文介绍了在Windows系统中同步Internet时间的多种方法,包括使用w32tm命令行工具、批处理脚本、注册表编辑以及第三方软件。详细步骤包括设置手动和自动同步,以及通过组策略保持与域中的PDC emulator同步。
摘要由CSDN通过智能技术生成

同步internet时间

Linux下shell同步时间

方法一:脚本批处理,可以添加到任务计划

W32tm.exe Primary Parameters

Parameter Description

W32tm /?

W32tm command line help

W32tm /register

Registers the time service to run as a service and adds default configuration to the registry.

W32tm /unregister

Unregisters the time service and removes all configuration information from the registry.

w32tm /monitor

[/domain:<domain name>] [/computers:<name>[,<name>[,<name>...]]] [/threads:<num>]

domain – specifies which domain to monitor. If no domain name is given, or neither the domain nor computers option is specified, the default domain is used. This option might be used more than once.

computers – monitors the given list of computers. Computer names are separated by commas, with no spaces. If a name is prefixed with a ‘*’, it is treated as a PDC. This option might be used more than once.

threads – specifies the number of computers to analyze simultaneously. The default value is 3. Allowed range is 1-50.

w32tm /ntte <NT time epoch>

Convert an NT system time, in (10^-7)s intervals from 0h 1-Jan 1601, into a readable format.

w32tm /ntpte <NTP time epoch>

Convert an NTP time, in (2^-32)s intervals from 0h 1-Jan 1900, into a readable format.

w32tm /resync

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值