You need to use the w32tm command .
foremost check the current settings :
w32tm /query /status
What about the 0x1 parameter ?
hypertext transfer protocol : //support.microsoft.com/en-us/help/875424/time-synchronization-may-not-succeed-when-you-try-to-synchronize-with
- 0x01 – Use special poll interval Special Interval
- 0x02 – Use As Fall back Only
- 0x04 – Send request as Symmetric Active mode
- 0x08 – Send request as Client mode
To set a new External Time Server like pool.ntp.org habit this command :
net stop w32time w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:MANUAL net start w32time w32tm /resync
This is the configuration :
w32tm /query /configuration
These are all the command line switches :
w32tm [ / ? | /register | /unregister ]
? – this assistant screen.
register – cross-file to run as a service and add default
configuration to the register.
unregister – unregister service and remove all shape
information from the register .
w32tm /monitor [ /domain :
is given, or neither the domain nor computers option is
specified, the default domain is used. This option may 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 an AD PDC. This option
may be used more than once.
threads – how many computers to analyze simultaneously. The
default value is 3. Allowed range is 1-50.
ipprotocol – specify the IP protocol to use. The default is
to use whatever is available.
nowarn – skip warning message.
w32tm /ntte
Convert a NT system time, in (10^-7)s intervals from 0h 1-Jan 1601,
into a readable format.
w32tm /ntpte
Convert an NTP time, in (2^-32)s intervals from 0h 1-Jan 1900, into
a readable format.
w32tm /resync [ /computer :
as possible, throwing out all accumulated error statistics.
computer:
specified, the local computer will resync.
nowait – do not wait for the resync to occur;
return immediately. Otherwise, wait for the resync to
complete before returning.
rediscover – redetect the network configuration and rediscover
network sources, then resynchronize.
soft – resync utilizing existing error statistics. Not useful,
provided for compatibility.
w32tm /stripchart /computer :
another computer.
computer:
period:
default is 2s
dataonly – display only the data, no graphics.
samples:
specified, samples will be collected until Ctrl-C is pressed.
packetinfo – print out NTP packet response message.
ipprotocol – specify the IP protocol to use. The default is
to use whatever is available.
w32tm /config [ /computer :
specified, the default is the local computer.
update – notifies the time service that the configuration has
changed, causing the changes to take effect.
manualpeerlist:
which is a space-delimited list of DNS and/or IP addresses.
When specifying multiple peers, this switch must be enclosed in
quotes.
syncfromflags:
sync from.
these keywords (not case sensitive):
MANUAL – sync from peers in the manual peer list
DOMHIER – sync from an AD DC in the domain hierarchy
NO – sync from none
ALL – sync from both manual and domain peers
LocalClockDispersion:
internal clock that w32time will assume when it can’t acquire
time from its configured sources.
reliable:(YES|NO) – set whether this machine is a reliable time source.
This setting is only meaningful on domain controllers.
YES – this machine is a reliable time service
NO – this machine is not a reliable time service
largephaseoffset:
local and network time which w32time will consider a spike.
Read more: Best Free Karaoke Software for Windows
w32tm /tz
Display the current time zone settings .
w32tm /dumpreg [ /subkey :
The default key is HKLM\System\CurrentControlSet\Services\W32Time
(the root key for the time service).
subkey:
of the default key.
computer:
w32tm /query [ /computer :
[/verbose]
Display a computer’s windows time service information.
computer:
specified, the default is the local computer.
source: display the time source.
configuration: display the configuration of run-time and where
the setting comes from. In verbose mode, display the undefined
or unused setting too.
peers: display a list of peers and their status.
status: display windows time service status.
verbose: set the verbose mode to display more information.
w32tm /debug { /disable | { /enable /file :
[/truncate]}}
Enable or disable local computer windows time service private log.
disable: disable the private log.
enable: enable the private log.
file:
size:
entries:
separated by commas, that specify the types of information that
should be logged. Valid numbers are 0 to 300. A range of numbers
is valid, in addition to single numbers, such as 0-100,103,106.
Value 0-300 is for logging all information.
truncate: truncate the file if it exists.
now that you set the server to properly sync you can use this one as home NTP server for early devices .
TIP :
Keep in mind to set the firewall UDP 123 rules to accept .
More information watch here
enjoy !
Share this:
Like this:
Like
Loading…
Related
This introduction was posted on Wednesday, October 30th, 2019 at 4:18 promethium and is filed under Server, Windows. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a reply, or trackback from your own web site .