Set Time (NTP) Server
DISCLAIMER: The information in this guide is provided "as is" without any guarantee of completeness, accuracy, timeliness, or of the results obtained from the use of this information. The author assumes no responsibility for any errors or omissions in the content. It is meant for general information purposes only and should not be used as a substitute for professional advice. The author is not responsible for any damages caused by the use of this information. By using this guide, you agree to hold the author harmless from any and all claims, damages, or expenses that may arise from your use of the information.
Overview
This guide is generally used to correct time server information on servers that either do not have a time server set or are set improperly, such as with an inaccurate NTP source. Do not use this information without consulting with your System/Server Administrator.
Requirements
- Snippet must be ran using administrator level permissions.
- Functional NTP Server, preferably the PDC (Primary Domain Controller). Although, this can be used to set the time server on any computer.
Snippet Code
Verify the Time Server
w32tm /query /configuration
Set the Time Server
In the following snippet, the tzutil command was placed within the net stop/start w32time commands. However, it can be used before or after these commands, since tzutil is not dependent on the w32time service to be configured.
net stop w32time
w32tm /config /syncfromflags:manual /manualpeerlist:us.pool.ntp.org
w32tm /config /reliable:yes
tzutil /s "Central Standard Time"
net start w32time
Snippet Documentation
N/A
Sources
KB Change/Issue Log
yyyy/mm/dd - Title
Issue
N/A
Solution
N/A
KB Meta
| Page Includes | @9#bkmrk-callout-danger-NoResponsibilityDisclaimer-5wod5ufe |