Solved

Net set time sets time one hour off.

Posted on 2007-03-23
7
1,702 Views
Last Modified: 2011-09-20
Here's a puzzlement.  I have a batch file that runs on the secondary servers every 6 hours and on every workstation at user logon.  Same batch file.  Simple little thing, just a net time set etc.

Here's whats' odd.  The secondary servers get the right time when the job runs on them (either on schedule or just by running the batch job) but the workstation get a time that is an hour off.  For example, if the server time is 11:15 and I run the job on a secondary server, the server time is set to 11:15, but if I run it on the workstation, the time on the workstation is set to 10:15.  I've tried it with the DST autoadjust box checked and unchecked - no difference.

Anyone know what is going on?  The workstations are Win2K SP4 and the server is Win 2003.

0
Comment
Question by:Ronald Hicks
7 Comments
 
LVL 30

Assisted Solution

by:SteveGTR
SteveGTR earned 50 total points
Comment Utility
Daylight saving bug? Have you applied the latest patches?
0
 
LVL 87

Assisted Solution

by:rindi
rindi earned 75 total points
Comment Utility
If you're in a time zone that is one hour off from UTC, then also check your BIOS. In some BIOS's you can define whether the system time is UTC or your time zone. Also make sure the PC's are set to the correct TZ.

Also, if your PC's logon to a windoze domain, they get their time from the DC's, and then a batch file that sets the time would be reset to what the DC sends out.
0
 

Author Comment

by:Ronald Hicks
Comment Utility
I've got all the lates updates; whatever comes down from Windows Update and Microsoft Update anyway.  Yes, my PCs and DCs are in and set to the same time zone.  Still, all the PCs get set by the batch file to an hur off.  If I don't run the net time set as part of logon script or as stand alone batch file nothing happens at logon.  What did you mean, rindi, by saying that the PCs get their time from the DC.  Do you mean that this happens automatically simply as part of being a windows 2003 network?  That doesn't seem to happen.  If I change the time on a PC to something wildly diffrerent from the DC and logoff and logon without the net set command, the time stays at the wildly different one I had set on the PC.  I'm now just waiting to see if this goes away when the "real" date for changing to Daylight Saving time comes, but I'm dubious since it didn't matter whether I had "automatically adjust for DST" checked or not.  Does is matter that my cleints are Windows 2000 (SP4) and not XP or Vista?

--ron
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 16

Accepted Solution

by:
Brian Pringle earned 125 total points
Comment Utility
Go to any computer in the domain and issue the following command at a command prompt.

net time

What computer is listed as being the time server?  Note that name and then issue the following command on each affected computer, as well as the computer that is listed as the time server.  Replace %%timeservername%% with the name of the server provided by the last command.

net time /setsntp:%%timeservername%%

Then, go to the Time Server and manually set the correct time.  The other servers should now synchronize with the correct time on that server every time your script runs.
0
 
LVL 16

Expert Comment

by:Brian Pringle
Comment Utility
As an answer to your questions...

1. The time in a Windows domain is automatically set by the first DC in the domain, unless you manually change that.

2. Logging off and back on won't make the workstation verify the time on the Time Server.  You would have to either reboot the computer or restart the "Windows Time" service.

3. It does not matter which OS is installed on the workstations, as long as you have all the DST patches installed.
0
 

Author Comment

by:Ronald Hicks
Comment Utility
Thanks btpringle.  I'll try that.  Maybe tomorrow unless events of Holy Week overtake me. ( I work at a church.)  I'll go ahead and closet this out and up the points.

Many thanks, Ron Hicks, St. Alban's Episcopal Church, Washington DC
0
 
LVL 16

Expert Comment

by:Brian Pringle
Comment Utility
No problem!  Please let me know if there is anything else that we can do for you.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now