Discussion Locked

Batch file for net time

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

I want to make sure that everyone who logons to my windows Nt domain gets time from serverX. I have already configured the server side. What I don't know is do I need to create a batch file, if so is this what I write in batch file

Net time \\serverX /set /yes

where do I keep this batch file is it the netlogon folder or somewhere else. ServerX is my pdc and Server A is my BDC which acts as secondary time server. If I try to copy it to the netlogon folder I get error message access deniedor sharing voilation and I am logged in as administrator. Do I have to stop any services to add it. Please suggest some ideas. Please also mention in details.

Thanks,

5 replies

by thenetworker

I use that line is the logon script itself, it hardly takes any time to run. I think the problem that you are having copying it to the netlogon share can be avoided by going to the \\servername\c$\WINNT\system32\Repl\Import\Scripts directory instead. This is the actual directory that is the netlogon share.

The other thing I did, was to set a batch file to run twice a day, with that same Net time command in it, on all of my servers to sync off of one server. Then I installed atomtime on that server to sync time with the atomic clock in boulder. Works really well. The atomtime program is really cheap too. http://www.atomtime.com/

- Hope this helps
Mike Scott

by don christner

What you suggest is the exact way that I used. Just store the batch file anywhere on one of the servers and then add a shortcut to it for each user. For NT workstations add the shortcut to the all users profile-startup folder.

Don

by singhjunk

Thanks Don, I got it all figured out. yeah adding a shortcut in startup folder is actually good too.Appreciate your help.

This discussion is closed to new replies.