Time Change on Multiple Computers

  • Thread starter Thread starter Dragon
  • Start date Start date
D

Dragon

Could someone suggest a batch file to run and set time on multiple computers
with them having to get it from a domain controller? I want to use this
batch file to force one-time time change on certain computers. (I know if
they are domain members they will get time form DC later anyway) but I need
them to synch all at once when I run this batch file.

Thank you.
 
Could someone suggest a batch file to run and set time on multiple
computers with them having to get it from a domain controller? I
want to use this batch file to force one-time time change on
certain computers. (I know if they are domain members they will
get time form DC later anyway) but I need them to synch all at
once when I run this batch file.

Assuming you are on a W2K machine and all other machines are W2K, you
might try the following command:

for /F %i in (computerlist.txt) do w32tm -s %i -once

where "computerlist.txt" is a file containing a list of your computers
one per line. This also assumes you have proper authority/permissions
on target machines.

HTH,
John
 
Back
Top