Solved

Hosts files

Posted on 2008-06-14
4
205 Views
Last Modified: 2010-04-07
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
Comment
Question by:xmouser
  • 2
  • 2
4 Comments
 

Author Comment

by:xmouser
ID: 21784542
The obvious choice is creating one and emailing it out.  However, some users might not have the ability to overwrite files.
0
 
LVL 18

Accepted Solution

by:
Wakeup earned 500 total points
ID: 21784544
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
 

Author Comment

by:xmouser
ID: 21784709
Thanks
0
 
LVL 18

Expert Comment

by:Wakeup
ID: 21785903
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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question