Set up an NTP server using the w32time service in Windows

Source: Internet
Author: User
You need to set up a time synchronization server in the LAN to unify the system time of each client and server. On the Internet, most of the NTP servers are indeed based on Linux. search, experiment, and summary: Write an article using the w32time service that comes with windwos2003 for time synchronization. windows 2003 Server is successfully configured. 1. by default, the standalone server Windows Server 2003 works as an NTP client. Therefore, you must modify the Registry to run the system as an NTP server. Back up the Registry file before you work. 2. modify the key value HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ w32time \ timeproviders \ ntpserver in the following options to 1, enable the NTP server function (the NTP server service is disabled by default, unless the computer is upgraded to a domain control site) 3. Set HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ w32time \ config \ announceflags to 5. the setting forces the host to declare itself as a reliable time source, using a built-in Complementary Metal Oxide Semiconductor (CMOs) clock. (After setting, it is necessary to determine that the battery of the local machine will be durable. If the time is set to a time server, the head will grow when an error occurs) if you want to use an external time server, use the default a value. 4. the server on my side uses an external server for synchronization. The address is 210.72.145.44 (China National Time Service Center). 5. restart the win32time service: net stop w32time & Net start w32time 6. so far, server-side settings have been completed. 7. modify the registry according to the client settings. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ w32time \ timeproviders \ ntpclient specialpollinterval value changed to decimal 43200 (unit: Second, 43200 is 12 hours) specialpolltimeremaining value changed to [time synchronization server], 0 for example: 192.168.1.1, 0 8. finished.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.