Solved

Net set time sets time one hour off.

Posted on 2007-03-23
7
1,706 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
ID: 18784463
Daylight saving bug? Have you applied the latest patches?
0
 
LVL 88

Assisted Solution

by:rindi
rindi earned 75 total points
ID: 18784713
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
ID: 18828353
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 16

Accepted Solution

by:
Brian Pringle earned 125 total points
ID: 18840273
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
ID: 18840285
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
ID: 18847989
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
ID: 18848012
No problem!  Please let me know if there is anything else that we can do for you.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

773 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