Solved

Hosts files

Posted on 2008-06-14
4
201 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 17

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 17

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

There have been a lot of times when we have seen the need to enter a large number of DNS entries in a forward lookup zone. The standard procedure would be to launch the DNS Manager console, create the Zone and start adding new hosts using the New…
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now