Is it possible to use robocopy to sync host files across multiple Windows servers

hostrobocopywindows-server-2003windows-server-2008

Would it be possible to use robocopy to copy the host file from one server to multiple servers (less than 10 total)?

We have servers that rely on having identical host files and this would be convenient. Also is it possible to schedule robocopy and have it execute in a bat file to be run on-demand? Or is there a better solution?

The servers are Windows 2003/2008.

Best Answer

I would suggest using a DNS server instead of distributing a HOST file. However, if you must; yes, one-to-one is what robocopy is good at; there are much more efficient replication methods that would be much better: DFS-R, FRS, and rsync to name a few.

To save a robocopy job, you could opt to use the /save: argument, then the /job argument to recall the job that was saved.

I would, however, suggest simply writing a BAT, and using a scheduled task.