?
Solved

Hosts files

Posted on 2008-06-14
4
Medium Priority
?
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
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 process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
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.
Suggested Courses

762 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