Discussion Locked

Login Script to synchronize clocks

0 helpful
12 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I wrote a logon script to have the users clocks synchronized with the clock of the pdc. @echo off
net time \\tsc1-pdc /set /yes
where tsc1-pdc is my servers name. The only problem is is works for the administrators but not for any of the users. I even added the domain users and everyone groups to the change system time in user manager but that didn't help either. I thought a logon script overrides any rights a user has. Please tell me how to get this script to work.

12 replies

by raf__2

The way that we resolved this issue at my company is to make the 'owner' of the PC a Power User. Power users can also share directories, while standard users cannot. We do NOT make users administrators of their PCs. If you wanted, you could make theDomain Users global group a member of the local Power Users group on the PCs. I have used the Hyena program from Adkins-Resource.com to modify large numbers of memberships of groups on PCs in our domain.

RAF

by lt1transamgt

I want to thank everyone for replying. All of the answers were very good but the one I am going to use is the power user option. It is the best fit solution for my company. Thanks.

by lbischofs

On the workstations:
You have to modify the User Rights in User Manager/Policies.
The "Right" is called Change System Time
And you'd Grant To: Domain Users or Everyone.

If you have the NT Resource Kit, you can do this remotely if the workstation is turned on and attached to the network. The utility is called NTRights. From DOS prompt, type NTRights /help for syntax and full description.

by dsmit221

I don't think that the best method is use the Login Script to synchronize your clocks. The method that we use is that there is a scheduled job on the workstation to set the clock with the PDC, which runs at Midday, Everyday. This method doesn't effect the possibly already length of scripts the user has to go through before logon!!!

Hope this helps

Darren

by raf__2

Darren,

Your answer will only work if the schedule service is set to start with a user ID that has the right to set the clock on the PC and also the right to get the time, as was suggested by the opening question, from the PDC. The default ID that starts the Schedule service is the System account, which has no domain rights.

Another method that can be used is to use the utility Tardis (www.kaska.demon.co.uk/tardis.htm). This program can be started as a service on the workstation and be set to sync the PC on a regular basis. For wide scale implementations, they have a companion utility called K9 which syncs with a server running Tardis.

RAF

by Member 33070795

I've taken a somewhat different approach with my network. I've installed the W32Time service on my servers and NT Workstations and use scheduling to synchronize the Win9X machines. W32Time runs as a service on NT.

W32Time and TimeServ are both available in Resource Kits or go to ftp://ftp.microsoft.com/reskit/y2kfix
TimeServ is the old version while W32Time is the Y2K version.
There isn't enough room here for details but, you can find all the configuration information (step by step) at www.microsoft.com/technet by searching the key word W32time. At this point I found 18 articles in this search.
You can then synchronize all your systems with a known precise clock at the US Navy in the U.S., the NRC in Canada or any site which supportsSNTP.

This discussion is closed to new replies.