Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time Sync on network

Status
Not open for further replies.

tyrobert

IS-IT--Management
Aug 8, 2003
67
US
I have noticed lately that the clocks on all my users workstations are about 13 minutes faster than the actual time from time.gov. The same goes for all the servers.

I need something to have the users computers sync up with the server and the server be synced up with some outside source. Any ideas/suggestions for this? Any and all help is appreciated and send as many suggestions as you want.

Thanks in advance.
 
If your running AD the workstations should automatically sync with the server, you will then need to sync the server with an external time clock. You can do this by using w32tm from command with the correct switches.

 
Thanks for the help faithless, this worked great.

For those wondering this is what I ended up doing:

Since the users will automatically sync up with the server that is running active directory you only need to do the net commands on that server.

1. At the command prompt enter this: Net Time /setsntp:tock.usno.navy.mil (or some other usno network time server: ).

2. Stop the Windows Time Service (can be found in the Services list, through Control Panel->Administrative Tools->Services)

3. At the command prompt type: w32tm -test -v -once
Go to the next step if you have no errors, if you do have errors than you need to make sure Port 123 is open if you have a firewall, if not then specify a different port to use. (you should see a bunch of if's and endif's and other code here on this command)

4. Right click on the Windows Time Service and properties and under the General Tab, at the bottom "Start parameters" type in "-period 0" (w/o the quotes) . Or you can use another sync frequency
-period <freq> where <freq> equals:

0 = once a day
65535 = once every 2 days
65534 = once every 3 days
65533 = once every week (7 days)
65532 = once every 45 min until we get 3 good syncs, then once every 8 hours (3/day)
65531 = once every 45 min until we get 1 good sync, then once every day

5. In the registry you need to change the Period value to whatever frequency you chose above, HKEY_LOCAL_MACHINE\SYSTEM\CONTROLSET001\SERVICESW32TIME\PARAMETERS\PERIOD=0

6. Start the time service back up. If it fails then you need to restart the computer. (this happened to me but when it came back up everything started correctly).

7. When you restart the users computer the settings take effect.

Hope that helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top