Windows32 w32tm Time Command Line

Windows32 w32tm Time Command Line

You can use the W32tm.exe tool to configure Windows Time service (W32time) settings. You can also use W32tm.exe to diagnose problems with the time service. W32tm.exe is the preferred command-line tool for configuring, monitoring, or troubleshooting the Windows Time service. 


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:] [/computers:[,[,...]]] [/threads:]

Domain—Specifies which domain to monitor. If no domain name is specified, 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 has a prefix of a ‘*’, it is treated as a primary domain controller (PDC). You can use this option more than once.

threads—Specifies the number of computers to analyze simultaneously. The default value is 3. The allowed range is 1 through 50.

w32tm /ntte

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

w32tm /ntpte

Converts a Network Time Protocol (NTP) time, in (2^-32)s intervals from 0h 1-Jan 1900, into a readable format.

w32tm /resync





Tells a computer that it should resynchronize its clock as soon as possible, throwing out all accumulated error statistics.

computer:—Specifies the computer that should resynchronize. If a computer is not specified, the local computer will resynchronize.

nowait—Do not wait for the resynchronization to occur; return immediately. Otherwise, wait for the resynchronization to complete before returning.

rediscover—Redetect the network configuration and rediscover network sources; then, resynchronize.

soft—This option is only provided for compatibility with older time servers and will resynchronize using existing error statistics..

w32tm /stripchart







Displays a strip chart of the offset between this computer and another computer.

computer:—The computer to measure the offset against.

period:—The time between samples, in seconds. The default value is 2 seconds.

Dataonly—Display only the data, without graphics.

samples:—Collect  samples; then, stop. If a value is not specified, samples will be collected until the user types 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:—Adjusts the configuration of . If a value is not specified, the default is the local computer.

update—Notifies the time service that the configuration has changed, causing the changes to take effect.

manualpeerlist:—Sets the manual peer list to , which is a space-delimited list of Domain Name System (DNS) and/or IP addresses. When you are specifying multiple peers, this option must be enclosed in quotation marks (“).


—Sets what sources the NTP client should synchronize from. 

 should be a comma-separated list of these keywords (not case sensitive):

  • MANUAL— Include peers from the manual peer list.

  • DOMHIER— Synchronize from a domain controller in the domain hierarchy.

  • NO—Do not synchronize from any server.

  • ALL—Synchronize from both manual and domain peers.

LocalClockDispersion:—Configures the accuracy of the internal clock that W32time will assume when it cannot acquire time from its configured sources.

reliable:(YES|NO)—Set whether this computer is a reliable time source.

This setting is meaningful only on domain controllers.

  • YES—This computer is a reliable time service.

  • NO—This computer is not a reliable time service.

largephaseoffset:—Sets the time difference between local time and network time that W32time will consider to be a spike.

w32tm /tz

Displays the current time zone settings.

w32tm /dumpreg



Displays the values that are associated with a given registry key.

The default key is HKLM\System\CurrentControlSet\Services\W32Time

(the root key for the time service).

subkey:—Displays the values that are associated with subkey  of the default key.

computer:—Queries registry settings for computer .

w32tm /query [/computer:] {/source | /configuration | /peers | /status} [/verbose]

This parameter was first made available in the Windows Time client versions of Windows Vista, and Windows Server 2008.

Displays a computer's Windows Time service information.

computer:—Query the information of . If a value is not specified, the default value 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 also.

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: /size: /entries: [/truncate]}}

This parameter was first made available in the Windows Time client versions of Windows Vista and Windows Server 2008.

Enables or disables local computer Windows Time service private log.

disable—Disable the private log.

enable—Enable the private log.

  • file:—Specify the absolute file name.

  • size:—Specify the maximum size for circular logging.

  • entries:—Contains a list of flags, specified by number and 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 through 100,103,106. Value 0-300 is for logging all information.

truncate—Truncate the file if it exists.

* Please use the comment form below. Comments are moderated.*

Related Posts



No comments made yet. Be the first to submit a comment
Tuesday, 28 November 2023