Discussion Locked

Setting up Script files to update time

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to set up some type of script file so that all the PCs on my network will have the same time. I know what to put on the script file so that all the PC's synchronize to the server time but I am not sure on how to set it up so that the script file will run on the individual PCs everytime someone logs on. Can anyone help me?

5 replies

by dhuffman

This is what we do : We create a batch file in the \\server\NETLOGON folder. In the batch file we put the following command - net time \\server /y /s. Then in user manager, under the users account - profile, insert the batch file name in the logonscript name field.

by pat.stone

I am making a couple of assumptions.

1. You are logging into an NT domain.
2. You are not using Windows 2000 at the desktop.

In the directory:

winnt\system32\repl\import\scripts
ensure that the following line is incorporated into you login script. Name the script anything you want. Within usermanager, assign your script (along with this line) to everyone's login by placing the name of the script in the User enviironment Profile under the properties of each user. Ensure that each user is logging into the Domain and after each one is authenticated, it will run the script and automatically change their time to the server time.

net time /domain:(domain name)/set /yes

Also make sure that you DO NOT put the parens before andafter the domain name.

This discussion is closed to new replies.