Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

Hosts files

Is there a way via script, batch file, etc. to edit hosts files on computers in a domain?  I need to add information to 100+ PCs and rather than send out directions I would rather just 'script it'.

AD integrated
Server 2003
Windows XP
0
xmouser
Asked:
xmouser
  • 2
  • 2
1 Solution
 
xmouserAuthor Commented:
The obvious choice is creating one and emailing it out.  However, some users might not have the ability to overwrite files.
0
 
WakeupSpecialist 1Commented:
I dont want to take credit for this one, but take a look at this:
http://www.mvps.org/winhelp2002/hosts.htm

This could be a good start.  The batch files are in place....just modify the text to what you would like.  I am not all too familiar with scripting, so not sure how to make it a script, but this is a great place to start if you would could use a batch file instead.

you can covert batch files to exe....dont know if this tool is helpful.  I've never used nor heard of it till now doing a tad bit of research....
http://www.softsland.com/commandline.html

Anyway let me know if you have any more questions etc.  I use MVP's Hosts file to help block the adds from displaying.  So even if you go to certain webpages like EE for example and they have the advertisments, those ads come up blank on the screen.  you cant click it or use it.  Works good! :)  very helpful for those who do not always know what they are clicking!
0
 
xmouserAuthor Commented:
Thanks
0
 
WakeupSpecialist 1Commented:
Cool...I hope you will be able to implement something like that for your computers!  Good luck, if you have any more questions, let me know!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now