Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Windows Server 2008 Server Core : Managing the System Time with the W32Tm Utility

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/29/2011 6:15:02 PM
Time is a critical resource for most people and not just because there's too little of it. When your computer lacks proper time synchronization, your applications might not work as expected. Entries you make into remote databases suddenly bear the wrong timestamp. It's more than just inconvenient. The W32Tm utility helps you manage time on your system. You use it to set how Windows reacts to time events and to set your system up as a timeserver. This utility uses the following syntax:
w32tm [/register | /unregister ]
w32tm /monitor [/domain:<domain name>]
[/computers:<name>[,<name>[,<name>...]]] [/threads:<num>]
[/ipprotocol:<4|6>] [/nowarn]
w32tm /ntte <NT_time_epoch>
w32tm /ntpte <NTP_time_epoch>
w32tm /resync [/computer:<computer>] [/nowait] [/rediscover] [/soft]
w32tm /stripchart /computer:<computer> [/period:<refresh>] [/dataonly]
[/samples:<count>] [/packetinfo] [/ipprotocol:<4|6>]
w32tm /config [/computer:<computer>] [/update]
[/manualpeerlist:<peers>] [/syncfromflags:<source>]
[/LocalClockDispersion:<seconds>] [/reliable:(YES|NO)]
[/largephaseoffset:<milliseconds>]
w32tm /tz
w32tm /dumpreg [/subkey:<key>] [/computer:<computer>]
w32tm /query [/computer:<computer>] {/source | /configuration | /peers
| /status} [/verbose]
w32tm /debug {/disable | {/enable /file:<name> /size:<bytes>
/entries:<value> [/truncate]}}

The following list describes each of the standard command line arguments.


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.

Other -----------------
- Microsoft Dynamics CRM 4.0 Accelerators : Analytics Accelerator (part 2) - Analytics Accelerator Installation
- Microsoft Dynamics CRM 4.0 Accelerators : Analytics Accelerator (part 1)
- Microsoft Dynamic CRM 4.0 : Google Maps Integration
- Microsoft Systems Management Server 2003 : Disaster Recovery - Backing Up the Site Through Systems Management Server
- Microsoft Systems Management Server 2003 : Disaster Recovery - Backup Process Flow
- InfoPath with Sharepoint 2010 : Create a Master or Detail Display Form for SharePoint Lists
- Add an InfoPath Form Web Part to a SharePoint Web Part Page
- Working with the Windows Home Server 2011 Registry : Keeping the Registry Safe
- Working with the Windows Home Server 2011 Registry : Starting the Registry Editor & Navigating the Registry
- BizTalk 2006 : Deploying and Managing BizTalk Applications - Important Deployment Artifacts
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server