Click to See Complete Forum and Search --> : how to get the time from server
Wide Angle
06-29-2002, 02:55 AM
hi guys,
I developed an application for time card which we use for employees time sheet. i had 5 workstation used for employees to punch in and out. my problem is im using the local time setting of the computer (w2k pro).
could someone tell me the command to get the time from server(w2k advance server) to local workstation (w2k pro)?
or command/setting from local workstation(w2k) to restrict local users not to change the time setting.
Thanks and awaiting for your valuable input.
henry
Midknyte
06-29-2002, 03:21 AM
as far as setting time, look in the group policies for any restrictions. i'm not at my server right now, so i'm going by memory. sorry
you can use the net time command to sync with the server. if you restrict the users from being able to set the time, i think that will prevent net time from working in your login script. try it out and see.
http://support.microsoft.com/directory/article.asp?ID=kb;en-us;Q216734
Nick CPU
07-02-2002, 10:57 AM
You have to create policies for users and there is an option that sets time via a PDC or BDC.
DVNT1
07-02-2002, 01:42 PM
In my environment (and I thought this is true for all W2K domains with W2K clients) the domain PCs would automatically get time from a DC.
Nick CPU
07-02-2002, 01:56 PM
I do not belive this is an automatic feature. You will need to set it up at the user policy level. I could be wrong but I am 99% sure this is how its done.
DVNT1
07-02-2002, 02:06 PM
I just checked the MSKB (MSKB link here) (http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q224799&), and it seems to be automatic for an AD domain...
The information in this article applies to Windows 2000 clients when they belong to a Windows 2000 Active Directory Domain. If the Windows 2000 clients belong to a workgroup, you must manually configure the time synchronization settings.
another supporting quote...
Windows-based computers use the following hierarchy by default:
All client desktop computers nominate the authenticating domain controller as their in-bound time partner.
All member servers follow the same process as client desktop computers.
Domain controllers may nominate the primary domain controller (PDC) operations master as their in-bound time partner but may use a parent domain controller based on stratum numbering.
All PDC operations masters follow the hierarchy of domains in the selection of their in-bound time partner.
from http://support.microsoft.com/directory/article.asp?ID=kb;en-us;Q216734
I'm not sure how to prevent them from changing the time locally though.
SysOpt.com
Copyright Internet.com Inc. All Rights Reserved.