How can I create a batch file to sync time?

December 2, 2010 at 09:08:28
Specs: Windows 2008 / XP
Hi, hopefully somone on here can help. We are running Windows 2008 Server and XP workstations. We have put desktop restrictions on the users so they cannot mess around with things (this is controlled through Microsoft Management Console. I have created a batch file and placed in in C:\Documents and Settings\All Users\Start Menu\Programs\Startup. When I log on (my logon has Admin rights) it runs and updates immediately. When I login is someone else, it either does not run or takes forever to update the date and time.

I have checked the permissions and the file is set that all users can read execute. The batch file has the following command net time \\servername /set /yes .

Can anybody assist me - I am going around in circles but it must be something SO simple that I am not doing.


See More: How can I create a batch file to sync time?

December 2, 2010 at 09:59:36
Each workstation should automatically synchronize the time with its domain controller. There's no reason to do it manually. Even if you're not using AD, the Time service should update the time automatically.

How To Ask Questions The Smart Way

Report •

December 2, 2010 at 23:46:27
Hi thanks for the message, this is what I thought too however it is not happening therefore I thought the batch file should be the easy answer. Thanks again anyway for your suggestion.

Report •

December 3, 2010 at 12:48:51
i don't have a domain set up, so i can't test it, but looking at the NET TIME options, instead of \\computername, have you tried: /DOMAIN or: /DOMAIN:domainname
or: the RTS versions of these options?

Report •
Related Solutions

Ask Question