What is W32TM Windows command?
The Windows w32tm command is used for configuring the time service in Windows operating systems to synchronize time with external sources.
W32TM Syntax:
w32tm [options] [parameters]W32TM Options:
| Option | Description |
|---|---|
| /register | Register the time service |
| /unregister | Unregister the time service |
| /query | Query the configuration |
| /config | Change configuration settings |
| /resync | Resynchronize the clock |
| /stripchart | Display an offset between two hosts |
Parameters:
| Parameter | Description |
|---|---|
| /computer: | Specifies the remote computer to operate on, defaults to local |
| /quiet | Suppresses success messages |
| /verbose | Displays detailed information |
| /monitor | Monitor mode |
| /manualpeerlist: | Manually specify the list of NTP peers |
W32TM Command Usage Examples:
Sync Time with a Specific NTP Server
w32tm /config /syncfromflags:manual /manualpeerlist:"time.windows.com"Configures the Windows Time service to synchronize time with the NTP server “time.windows.com”.
Check the Current Time Configuration
w32tm /query /statusDisplays the current configuration and status of the Windows Time service.
Force Synchronization with Time Source
w32tm /resyncForces the Windows Time service to immediately synchronize with its configured time source.
Set the Time Source to Local CMOS Clock
w32tm /config /syncfromflags:domhier /updateConfigures the Windows Time service to synchronize time with the local CMOS clock as the source.
Display Detailed Configuration Information
w32tm /query /configurationProvides detailed information on the configuration settings of the Windows Time service.
How do I synchronize the time on a Windows machine using w32tm?
To synchronize the time on a Windows machine, use the following command:
w32tm /resyncHow do I check the current status of the Windows Time service with w32tm?
To check the current status of the Windows Time service, use the following command:
w32tm /query /statusHow do I configure the NTP server settings with w32tm on Windows?
To configure the NTP server settings, use the following command as an example:
w32tm /config /manualpeerlist:"time.windows.com" /syncfromflags:manual /reliable:yes /updateHow can I force a Windows machine to update its time immediately using w32tm?
To force a Windows machine to update its time immediately, use the following command:
w32tm /resync /forceHow do I display the last synchronization time and result with w32tm?
To display the last synchronization time and result, use the following command:
w32tm /query /statusHow do I set the Windows Time service to start automatically with w32tm?
To set the Windows Time service to start automatically, use the following command:
w32tm /registerHow do I unregister the Windows Time service with w32tm?
To unregister the Windows Time service, use the following command:
w32tm /unregisterHow can I diagnose issues with time synchronization using w32tm in Windows?
To diagnose issues with time synchronization, use the following command:
w32tm /stripchart /computer:<NTP_server> /samples:<number> /dataonlyApplications of the W32TM Command
- Set time service configuration
- Synchronize time with a specified server
- Query the current status of the time service
- Change time configuration settings
- Diagnose issues related to time synchronization
- Monitor time service performance