同步internet时间
方法一:脚本批处理,可以添加到任务计划
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 |