register
Registers the current machine to run as a time service and adds the default configuration to the registry.
unregister
Unregisters the current machine as a time service and removes all configuration information from the registry.
monitor
Monitors a remote
computer for time changes. This command line switch sets the local time
to match the remote timeserver when you specify a domain. When used
alone, this command switch reports monitoring statistics.
domain:
domain_name
Specifies which domain to monitor. If you don't supply a domain name or you haven't used the /computers
command line switch, then the system uses the default domain. You may
include this option more than once at the command line to create
multiple time sources.
/computers:
name [,name [,name...]]
Specifies the
computers you want to use for monitoring purposes on the domain. The
command line switch may include multiple computers from the same domain.
Separate each computer with a comma without a space between names.
Prefix Primary Domain Controller (PDC) names with an asterisk (*). You
may include this option more than once at the command line to create
multiple time sources (once for each domain).
threads:
num
Determines the
number of computers to analyze simultaneously. The default value is 3.
You may specify any value between 1 and 50.
ntte
NT_time_epoch
Converts the specified Windows system time into a human-readable form.
/ntpte NTP_time_epoch
Converts the specified Windows Network Time Protocol (NTP) time into a human-readable form.
/resync
Causes a remote
computer to resynchronize its clock. This command line switch also
forces the remote computer to discard all error statistics and begin
creating new ones.
/computer:
computer
Specifies the name of
the target. If you don't specify this command line switch, the Win32Tm
utility interacts with the local computer.
/nowait
Forces the
utility to return control of the command prompt immediately. Normally,
the Win32Tm utility waits for the resynchronization process to complete
before returning.
/rediscover
Forces
the utility to rediscover timeservers on the network before it performs
the resynchronization process. Always use this command line switch when
you've added a new timeserver to the network.
/soft
Resynchronizes
the system's clock without discarding the error statistics. Don't use
this command line switch because Microsoft has disabled it. Keeping the
current error statistics could cause the affected machine to update its
clock incorrectly. Microsoft only provided this command line switch for
compatibility purposes.
/stripchart
Displays
text output showing the time differential between the local computer
and the specified computer. The display updates every 2 seconds unless
you specify a different interval using the /period command line switch. The output never includes graphics, despite the presence of the /dataonly
command line switch. The display continues to update with one entry per
line at the command prompt until you press Ctrl+C. Using the /samples command line switch sets a specific number of updates so you don't have to press Ctrl+C to stop the utility.
/period:
refresh
Defines the strip chart update frequency in seconds.
/dataonly
Displays only data in the output (this is the default and only output for Windows).
/samples:
count
Determines the number of samples to take before ending the strip chart.
/config
Configures the
specified computer to use a particular time source. You can only use
this command line switch to change the Windows time setup. Using the /config command line switch alone displays an error message.
/update
Notifies the
target computer that the changes are complete and it should update the
Windows time service. You must perform this configuration change for any
of the settings discussed in this section to take effect.
/manualpeerlist:
peers
Specifies one or
more time service peers. Use spaces to define multiple peers. You may
use a Domain Name System (DNS) name or an IP address to describe a peer.
When using this command line switch with multiple peers, you must place
the entire command line switch within quotes, not just the peer list.
/syncfromflags:
source
Defines the sources to use for synchronization. You may specify multiple sources. The two valid sources include MANUAL (the list of peers supplied as part of a /manualpeerlist command line switch) and DOMHIER (relies on a domain controller, DC, within the domain hierarchy).
/LocalClockDispersion:
seconds
Defines the
accuracy of the local clock. Windows uses this rating as a means of
compensating for errors when it can't locate a remote source.
/tz
Displays the
local time zone settings. The output includes the time bias information,
as well as settings for both standard and daylight savings time.
/dumpreg
Displays the Windows time settings located in the HKEY_LOCAL_MACHINE\SYSTEM\ CurrentControlSet\Services\W32Time key.
/subkey:key
Displays values associated with the specified subkey of the HKEY_LOCAL_ MACHINE\SYSTEM\CurrentControlSet\Services\W32Time key.
/ipprotocol:{4|6}
Chooses the IP version to use for the utility. You can choose between IP version 4 or IP version 6.
/nowarn
Prevents the display of warning messages. This feature is useful when you want to redirect the output to a file.
/packetinfo
Displays the NTP packet response message so that you can perform troubleshooting as required.
/reliable:{YES | NO}
Specifies whether this machine is a reliable time source. This setting only applies to domain controllers.
/largephaseoffset:
milliseconds
Defines the
difference between local and network time that W32Tm considers a spike.
The utility registers errors whenever it encounters a large time spike
and also attempts to correct the time differential.
/query
Displays
information about the target computer's time source. You control the
output by including one of the specific output command line switches (/source, /configuration, /peers, or /status) and the /verbose command line switch.
/source
Outputs
the time source information for the specified computer. The default
setting when not using an external time source is Local CMOS Clock.
/configuration
Outputs a considerable range of time source information including such specifics as the time source DLL.
/peers
Outputs a list of time source peers and their status.
/status
Outputs the
Windows Time Service status. This information includes such useful
statistics as the time of the last update and the poll interval.
/verbose
Augments the time service status information.
/debug
Enables or disables output of Windows Time Service information to a log.
/disable
Disables time service logging.
/enable
Enables time service logging.
/file:
name
Specifies the name of a file to use for logging purposes.
/size:
bytes
Specifies the
maximum size of the time service log. When the log is full, Server Core
begins removing the oldest entries and adding new entries. The time
service uses a circular logging system so the log will never overflow.
/entries:
value
Defines the list
of entries that the log contains as numeric values. Unfortunately,
Microsoft doesn't document these values, but the range is within the
values from 0 to 300. Fortunately, the debugging mode works fine without
this command line switch.
/truncate
Truncates an
existing log file before making new entries. This command line switch
ensures that the log doesn't contain any old entries when you start the
debugging process.