How to visit every computer on the network and modify the hosts file in windows xp

networkingscriptingvbscriptwindows-xp

We need to append a line to the hosts file for every user on our network. I have admin privileges, but don't know the first thing about windows scripting. Can someone point me in the right direction on this? I don't have the list of all the machine names, so I'd prefer a script that would discover all the machines on the network and do the update.

Best Answer

I realize the question is about modifying the host file via vbscript.

Would it be more effective to create a new internal DNS entry for the hostname you're trying to resolve? If you truly want EVERY user/machine on the network to see this change, perhaps this would be easier?