• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

Getting time from the DC your logging on to.

I have Windows 2000 Domain controllers.  Some are in the east cost and some are in Central time zone.  My question is there a policy that I can use that would pull the time from the Server.
0
FabconIT
Asked:
FabconIT
  • 7
  • 6
  • 2
  • +2
1 Solution
 
Gareth GudgerCommented:
You can use the "net time" command and specify the server you want to use.
0
 
FabconITAuthor Commented:
Yeah, but what if you have a laptop.  Sometime you are in eastern time and sometimes you are in central.
0
 
Fatal_ExceptionCommented:
Place Net Time into a script and push it out with Group Policy...
0
Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

 
FabconITAuthor Commented:
How do I point it to the server at each site?
0
 
Fatal_ExceptionCommented:
You will need to place it on the DC's in the ADUC/Domain GPO...    You can use vbs or just a simple batch file to do this with...  Here is a link that may help  you ....

http://www.tycho7.com/Software/Win2k/logon_scripts.htm
0
 
infradawnCommented:
net time %logonserver%

?


iD
0
 
Fatal_ExceptionCommented:
Guess I was in too much of a hurry  ..  meetings you know..  

Anyway, yes, infradawn has the correct method..

FE
0
 
FabconITAuthor Commented:
what method.
0
 
Fatal_ExceptionCommented:
For example, assume that you have a server named Timesrv that has a reliable system clock. Here is an example batch file that can either run from the workstation or be called from (or be part of) a logon script:

net time \\timesrv /set /yes

http://support.microsoft.com/default.aspx?scid=kb;EN-US;314090
0
 
mikeleebrlaCommented:
if you pull the time from any time server in the world it will give the correct time according to greenwich england time,, but it is up to the client to determine what time zone the client is physically in so the correct time for that time zone will be displayed.  It doesn't matter what time zone your time server is in at all,,, correct time is correct time.  The server has no way of knowing what time zone the client is in and it doesn't care,, it just gives the greenwich england time anyway.  If a laptop is moved from the eastcoast to the westcoast,, it is up to the user to change the time zone on the laptop. Check this article below:

http://support.microsoft.com/default.aspx?scid=216734
0
 
FabconITAuthor Commented:
Here what I am trying to do.  I have a Laptop that is from a Central time Zone.  There is a 2000 server in the Central time zone.  Lets say I travel to the Easteren time zone, where there is a windows 2000 server there and it is a Domain controller.  When I get to the office and log into the network in the eastern time zone I still have the central time.  I want a policly that will say ohh your in the Eastern time zone here is the time.
0
 
Fatal_ExceptionCommented:
And have it automatically change the Time Zone on the laptop..???

We will need a special script for this...  hmmm
0
 
FabconITAuthor Commented:
Should just pull of that server?
0
 
FabconITAuthor Commented:
Should just pull of that server?
0
 
mikeleebrlaCommented:
I dont belive this is really possible without manaually changing the GPO on the DC every time the laptop changes time zones, which will be more difficult than having the client changing the time zone themselves. Like i mentioned earlier,, regardless of what time zone a DC/time server is in it still will have no way of knowing what time zone the client is in.  There is no way for the server to magically say "ohh your in the Eastern time zone here is the time" , it will give the client greenwich england time and then the client will display the current time based on that time,, based on what time zone is set on that client.  The only way for the DC to "know" which time zone it is in is for the client to tell it,, which is done by chaning the time zone on the local PC,, there is no magical way for it to just "know" you changed time zones
0
 
FabconITAuthor Commented:
Thanks for your imput
0
 
infradawnCommented:
Hey, topic's closed but so what!

Assuming your logon DC is in the same site as your laptop (and it should be) then you might decide to assume that your laptop is in the same TZ as the DC. If that's an acceptable assumption then you can pull the TZ setting off the DC and apply it to the laptop.

You'll need to drive this from the client end and use credentials that have read privs to the DC registry to get the site's TZ and then apply that TZ setting to the client.

Check out: http://www.jsiinc.com/SUBP/tip7500/rh7525.htm


iD
0
 
Fatal_ExceptionCommented:
Man, I knew I had seen that command before...   should have know to ck JSI...!!!

FE
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 6
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now